fix: still need this fix to run-ios on m1 mac (#15439)

This commit is contained in:
yqrashawn 2023-03-22 21:13:51 +08:00 committed by GitHub
parent f2c8f21336
commit daa78b4171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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