an error “No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s).”?

南笙酒味 提交于 2019-11-30 08:38:55

问题


I have Xcode 4.6. I downloaded this project When run it i receive a message No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s). Where and what i have to change? I have no idea what should i do? Thanx


回答1:


If you are in Xcode 5.0 , this may arise if you select a 64 bit (simulator for iPhone 5S) simulator instead of 32 bit simulator. This happened to me. It may help some one, because I didn't find any answer to solve this till I found it myself.




回答2:


Go to
Project Target > Build Settings > Architectures

and make

Build Active Architecture Only = NO

The issue will be solved




回答3:


For me the solution was to add arm64 to valid arhitectures. Follow steps described in the attached image. Hope it helps someone




回答4:


Change the following:

Build Settings > Architectures > Architectures to:

"$(ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s)"

Build Settings > Architectures > Valid Architectures to:

armv7 armv7s

Build Settings > Architectures > Build Active Architectures Only to:

No




回答5:


change the Target--Build Settings--Architectures To "Standard(armv7,armv7s)"




回答6:


In the Build setting you need to change the architecture to your project architecture which it supports




回答7:


Changing the following ONLY works for me:

Build Settings > Architectures > Valid Architectures to:

armv7 armv7s



来源:https://stackoverflow.com/questions/19423800/an-error-no-architectures-to-compile-for-only-active-arch-yes-active-arch-x86

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!