Enable bitcode for cocoapods

This commit is contained in:
Yishi Lin 2017-09-24 14:18:49 +08:00
parent 4bd2d8e658
commit d6177ad29d
2 changed files with 32 additions and 4 deletions

10
Podfile
View file

@ -13,3 +13,13 @@ target 'passKit' do
inherit! :search_paths
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
cflags = config.build_settings['OTHER_CFLAGS'] || ['$(inherited)']
cflags << '-fembed-bitcode'
config.build_settings['OTHER_CFLAGS'] = cflags
end
end
end