In *.a, building for iOS Simulator, but linking in object file built for iOS, file '*.a' for architecture arm64
解决方案:
- 在项目得编译设置中,对模拟器排除arm64。
- 在podfile中添加排除钩子
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = "arm64"
end
end
网友评论