M1芯片XCode 12编译模拟器Architecture报错问题
Posted 上进求知,认真思辨
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了M1芯片XCode 12编译模拟器Architecture报错问题相关的知识,希望对你有一定的参考价值。
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
以上是关于M1芯片XCode 12编译模拟器Architecture报错问题的主要内容,如果未能解决你的问题,请参考以下文章
M1芯片XCode 12编译模拟器Architecture报错问题
M1芯片XCode 12编译模拟器Architecture报错问题