linker command failed with exit code 1 xcode4.5

前端 未结 2 1585
一生所求
一生所求 2021-01-06 15:54

I updated my iphone4s and xcode to the latest yesterday. And I\'m trying to debug my app on my phone since my application uses hardware communication. I\'m using a third pa

相关标签:
2条回答
  • 2021-01-06 16:19

    You can simply disable the compilation of armv7s in your Build Settings, by replacing the $VALID_ARCHITECTURES (which evaluates to armv7 armv7s now) value by the explicit value armv7.

    Thus your application will only build for armv7 and not armv7s, so will not be fully optimized for the new iPhone5, but it will still run on iPhone 4 and 5 anyway (the armv7s processor of the iPhone 5 can execute armv7 applications, it is just not as optimized as with armv7s processor dedicated instructions)

    0 讨论(0)
  • 2021-01-06 16:39

    I did another search and found two solutions work for me. Dafna 1. Go to Target Setting -> Build Settings -> Build Active Architecture Only -> change to NO. 2. Still in Build Settings -> Valid Architecture -> delete armv7s.

    They both work for me. If you have the same problem, definitely try this first.

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