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

前端 未结 7 978
北海茫月
北海茫月 2020-12-18 00:37

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=armv

相关标签:
7条回答
  • 2020-12-18 00:44

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

    0 讨论(0)
  • 2020-12-18 00:47

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

    0 讨论(0)
  • 2020-12-18 00:51

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

    0 讨论(0)
  • 2020-12-18 00:57

    Go to
    Project Target > Build Settings > Architectures

    and make

    Build Active Architecture Only = NO

    The issue will be solved

    0 讨论(0)
  • 2020-12-18 01:00

    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.

    0 讨论(0)
  • 2020-12-18 01:09

    Changing the following ONLY works for me:

    Build Settings > Architectures > Valid Architectures to:

    armv7 armv7s

    0 讨论(0)
提交回复
热议问题