https://stackoverflow.com/questions/63607158/xcode-building-for-ios-simulator-but-linking-in-an-object-file-built-for-ios-f
改项目配置
EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64
改podspec
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
改Podfile
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
标签:building,iphonesimulator,built,iOS,arm64,EXCLUDED,ARCHS,sdk From: https://www.cnblogs.com/yuxiaoyiyou/p/17838382.html