From fdb48892d91e90ca66d295b46cbcdfe5f74d3353 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 6 Oct 2022 14:59:57 +0200 Subject: [PATCH 1/2] LUN-445: add command to podfile to exclude arm64. --- ios/Podfile | 7 +++++++ 1 file changed, 7 insertions(+) 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 From a74b0c2aae704c7d636eb4f5b6dada1c5cfb5d01 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 6 Oct 2022 15:12:46 +0200 Subject: [PATCH 2/2] LUN-445: add link to issue --- ios/Podfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Podfile b/ios/Podfile index 5e9c39571..aedbd555a 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -36,7 +36,7 @@ target 'Lunes' do # you should disable these next few lines. # use_flipper!() - # Added the excluded_arch fix for M1 chips and cocoapods + # 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)