From 81145053737d799aacd3f46969a5aed948ca0325 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Tue, 29 Aug 2023 13:00:59 -0400 Subject: [PATCH] Update Podfile https://github.com/functionland/react-native-fula/issues/69 --- example/ios/Podfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/example/ios/Podfile b/example/ios/Podfile index cdbe86e..c476ece 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -51,12 +51,19 @@ target 'FulaExample' do end post_install do |installer| - # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 + # First part, using 'installer' react_native_post_install( installer, config[:reactNativePath], :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) + + # Second part, 'installer' used in place of 'pi' + installer.pods_project.targets.each do |t| + t.build_configurations.each do |config| + config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' + end + end end end