使用Xcode 4在iphone4设备中调试时如何指定arm6?
我们的产品使用OpenCV作为库,仅支持arm6。 在Xcode 3.2中,我们可以将活动架构指定为armv6,以便我们可以调试&在iphone4上测试(实际上是armv7 cpu)。
今天我将xcode升级到4.0.2,发现在iphone4上调试时,xcode会“智能”地识别它,并将活动架构设置为armv7,这导致在iphone4设备上调试时出现链接错误。 如果我强制将有效架构设置为armv6,则会出现以下编译错误:
没有要编译的架构(ONLY_ACTIVE_ARCH=YES,活动arch=armv6,VALID_ARCHS=armv6)。
我想知道,在iphone4设备上调试时,如何在xcode 4中将活动架构设置为armv6?
Our product uses OpenCV as a library which is only support arm6.
In Xcode 3.2, we can specify the active architecture to armv6 so that we can debug & test on iphone4 (which is actually armv7 cpu).
Today I upgraded my xcode to 4.0.2, and I found that when debugging on iphone4 , xcode will "smartly" recognize it and set the active architecture to armv7, which leads link error when debug in iphone4 device.
If I force to set the valid architecture to armv6, it will gets compile error below:
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=armv6).
I want to know that, when debugging in iphone4 device, how to set the active architecture to armv6 in xcode 4?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后,我决定升级我的项目以使用armv7 opencv库。
不好的影响是不再支持 iphone 版本的 armv6(即 iphone 和 iphone3G)。
Finally, I decide to upgrade my project to use armv7 opencv library.
The bad effect is the iphone version of armv6 (which is iphone & iphone3G) is NOT supported any more.