diff --git a/ios/Podfile b/ios/Podfile index f2f77b3d8..835d0740e 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -38,8 +38,15 @@ target 'Lunes' do # you should disable these next few lines. # use_flipper!() + # Added the excluded_arch fix for M1 chips and cocoapods https://github.com/mrousavy/react-native-vision-camera/issues/914 + 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