在使用iphone模拟器64位,我得到以下架构错误。
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386)
经过一番搜索在Stack Overflow上搜到答案,是这么说的
have a look under your build settings, check that the setting Build Active Architecture Only
is set to No
(might make compiling a bit slower but should fix the problem)
Also check that the Valid Architectures
has arm64 in the list
Note if you are getting an error when submitting an app saying "Apps that include an arm64 architecture are required to include both armv7 and armv7s architectures”, setting it to No will also fix this
也就是在工程中找到 Build Settings->Build Active Architecture Only然后将Debug设置为No,同时检查这个Valid Architectures ,有arm64,这样就解决问题了,这样可能会使编译器变慢,但是可以解决问题。