不能建立以X code 4.2〜4.2.1设备 [英] Cannot build to 4.2.1 device with Xcode 4.2
问题描述
我最近升级我的项目根据X code 4.0.1于X code 4.2 - 一切都很pretty顺利,我没有在模拟器一些调试,然后我决定建立与设备。
I recently upgraded my project from Xcode 4.0.1 to Xcode 4.2 - and everything went pretty smoothly, I did some debugging in the simulator and then I decided to build with device.
我的设备是一台运行4.2.1第二代的iPod Touch,所以我最初试图建立到它,并得到这个错误:
My device is a 2nd gen iPod Touch running 4.2.1, so I initially attempted to build to it and got this error:
未知错误消息IncorrectArchitecture,从设备接收。
An unknown error message 'IncorrectArchitecture', was received from the device.
当你与大多数的错误信息做什么,我GOOGLE了它,并发现此问题。
As you do with most error messages, I googled it, and found this question.
阅读的答案后,我接着检查了我的目标体系结构,它原来我只用了的ARMv7
作为一个体系结构来构造。 - 我加了的ARMv6
建筑,作为答案所暗示的,但是当我建立了它,我得到了构建警告/错误等的负载:
After reading the answer, I proceeded to check up on my target architectures, and it turns out I only had armv7
as an architecture to build for. - I added the armv6
architecture, as the answer suggests, but when I built it, I got a load of build warnings/errors such as:
忽略文件/some/path/to/a/staticlibrary.a,文件是专为存档而不是被连接的架构(ARMv6的)
ignoring file /some/path/to/a/staticlibrary.a, file was built for archive which is not the architecture being linked (armv6)
这发生在我的项目中的所有静态库,如KAL库 - libkal.a和所有three20库
This occurs on all the static libraries in my project, such as the kal library - libkal.a and all the three20 libraries.
这些库链接英寸x code 4.0.2罚款 - 这还内置细到我的iPod - 那么,为什么会在的ARMv7
建筑不是建立和库以x code 4.2没有的ARMv6 链接以? - 我真的很困惑 - 任何建议将不胜AP preciated。
Those libraries linked fine in Xcode 4.0.2 - and it also built fine to my iPod - so why will the armv7
architecture not build AND the libraries not link for armv6
in Xcode 4.2? - I'm really confused - any suggestions would be greatly appreciated.
推荐答案
添加到的ARMv6构建的设置是这样的:
Add ARMV6 to your build settings like this:
- 选择您的构建设置
- 滚动到架构
- 在现有的条目Doubletap
- 在点按 +
- 输入的ARMv6
- 在点按完成
- Select your build settings
- Scroll to Architectures
- Doubletap on the existing entry
- Tap on +
- Enter armv6
- Tap on Done
您需要为做到这一点的与您的应用程序链接的所有项目(例如three20)。
You will need to do this for all projects that are linked with your app (e.g. three20).
这篇关于不能建立以X code 4.2〜4.2.1设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!