Skip to content

Instantly share code, notes, and snippets.

@SGarcia710
Created August 21, 2021 16:31
Show Gist options
  • Save SGarcia710/bed52a5e920de5ca000143d2816c9aed to your computer and use it in GitHub Desktop.
Save SGarcia710/bed52a5e920de5ca000143d2816c9aed to your computer and use it in GitHub Desktop.
Podfile modificado para React Native en Apple M1
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'ReactNativeOnM1' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
target 'ReactNativeOnM1Tests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
# Con esta nueva linea, le decimos a xcode que use una version compatible con M1
use_flipper!({ 'Flipper' => '0.91.1', 'Flipper-Folly' => '~> 2.6', 'Flipper-RSocket' => '~> 1.4' })
post_install do |installer|
# Instalación para la configuración agregada
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
end
end
flipper_post_install(installer)
# Aqui termina el codigo agregado
react_native_post_install(installer)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment