Moving to iOS6 I get this linker error with almost all external packages

霸气de小男生 提交于 2020-01-02 04:30:22

问题


"file was built for archive which is not the architecture being linked (armv7s)"

do I need to wait for people to release new binaries or I have a way out,
I get this for GoogleAnalytics Restkit ...

EDIT: problem with Restkit solved with their latest commit, just pull from github,


回答1:


Yes, they will have to release binaries which are compiled for armv7s architecture to support the new iPhone 5 A6 processor. In the meantime, you can temporarily compile against only armv7 to continue development on iOS 6 on your current device until those other libraries are updated.

  • Go to Target -> Build Settings -> Architectures
  • Choose "Other..."
  • Add "armv7"
  • Remove $(ARCHS_STANDARD_32_BIT)
  • Done
  • Clean & Build



回答2:


EDIT: Problem with Restkit solved, check out the latest commit from github: git://github.com/RestKit/RestKit.git

EDIT: Problem with Google Analytics also solved as of Version 1.5.1 just download the new version.

Just do not forget to remove old binaries, and clean then build.

For things like 'RestKit' that you have the source code, if you clean them separately and then build (making sure that the Architecture includes Armv7s) it works just fine, you get the binaries that you need and then linked properly to your app.

For reason's beyond my understanding, when I changed the target from iOS device to iPhone 6.0 Simulator and did a clean and then build, I could link against Google Analytics as well,

Still building for the "iOS device" (not the simulator) does not work, I get linker errors.




回答3:


Sound advice on the matter from: http://wanderingcoder.net/2012/09/16/no-armv7s-til-tested/

Basically: remove the armv7s from Architecture in your build settings until you can get your hands on a device (in a few days I suppose) AND people (like Google for the Google Analytics issue) start releasing binaries, don't release hacked, untested code.



来源:https://stackoverflow.com/questions/12398201/moving-to-ios6-i-get-this-linker-error-with-almost-all-external-packages

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