diff --git a/ios/Podfile b/ios/Podfile index 9b321de04..5e9c39571 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -36,8 +36,15 @@ target 'Lunes' do # you should disable these next few lines. # use_flipper!() + # Added the excluded_arch fix for M1 chips and cocoapods + post_install do |installer| react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = "arm64" + end + end end end