M1芯片XCode 12编译模拟器Architecture 报错问题
- No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64 armv7 armv7s).
- Command PhaseScriptExecution failed with a nonzero exit code
- xxxx building for iOS Simulator, but linking in object file built for iOS, xxxxx for architecture arm64
1.pod文件添加这个
post_install do |installer| installer.pods_project.build_configurations.each do |config| config.build_settings[“EXCLUDED_ARCHS[SDK=iphonesimulator*]”] = “arm64” end end
2.PROJECT TARGETS pod的PROJECT 的buildSetting 里的Build Active Architecture Only 的debug 模式给为NO
3.TARGETS 里添加自定义VALID_ARCHS
arm64 armv7 armv7s x86_64
|