From daa78b4171ce310d248324b7c50474cd4d5bb6d2 Mon Sep 17 00:00:00 2001 From: yqrashawn Date: Wed, 22 Mar 2023 21:13:51 +0800 Subject: [PATCH] fix: still need this fix to run-ios on m1 mac (#15439) --- ios/Podfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ios/Podfile b/ios/Podfile index 0089b40256..14221839f8 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -35,6 +35,16 @@ abstract_target 'Status' do target 'StatusImPR' do end + post_install do |installer| + # some of libs wouldn't be build for x86_64 otherwise and that is + # necessary for ios simulators + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' + end + end + end + use_native_modules! end