转自:http://www.cnblogs.com/lovecode/articles/2263592.html

 

在iOS5系统下有时考虑到程序的兼容性,我们会选择SDK低于4.3来编译,但在Xcode4.2中会出现如下错误:
warning:iPhone apps with a deployment target lower than 4.3 should include an armv6 architecture(current IPHONEOS_DEPLOYMENT_TARGET = "4.0",ARCHS = "armv7").

由google找到的一篇相应的解决之道:在Target的Build Setting标签栏下设置:

【转】Xcode4.2 iOS5编译低于SDK4.3程序的方法

 找到Architectures,然后通过上下框选择Other

【转】Xcode4.2 iOS5编译低于SDK4.3程序的方法

 按+号,手动添加一个armv6

【转】Xcode4.2 iOS5编译低于SDK4.3程序的方法

 保存一下,就是显示armv6 armv7了,噢,搞掂。

【转】Xcode4.2 iOS5编译低于SDK4.3程序的方法

原因分析:Xcode 4.2的Architectures设置默认只有armv7,也就是新的iOS设备,包括iPhone 3GS, iPhone 4, iPhone 4s, iPad, iPad2等,而iPhone, iPhone 3G, iPod Touch, iPod Touch 2属于armv6架构。

解决方法:将Architectures设置为armv6 armv7。 

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-12-16
  • 2021-09-16
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2021-11-11
  • 2021-08-28
  • 2021-07-16
  • 2022-01-19
  • 2022-12-23
相关资源
相似解决方案