error “ld terminated with signal 6” for theos project after upgrade to Xcode 4.5

爷,独闯天下 提交于 2019-12-06 01:29:08

got feedback from https://github.com/DHowett/theos/issues/39

Xcode 4.5 ships with two different versions of the same linker. The one used by gcc (which is deprecated) crashes on armv6 output, and the one used by clang can not generate armv6 output. There is currently no way to use the 6.0 SDK while targeting iOS versions less than 4.3, or any armv6 platforms. If you're willing to accept this, please add the following to the top of your Makefile:

export ARCHS=armv7 export TARGET=iphone:latest:4.3

(note from theiostream) Alternatively, it is possible to use older SDKs and build for both architectures and older deployment targets (up from 3.0). Just force them (if they exist on your Xcode Developer directory), as:

export ARCHS = armv6 armv7 export TARGET=iphone::

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