xcode 没有规则来处理架构 armv6 的文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12568911/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
No rule to process file for architecture armv6
提问by Neelesh
I recently migrated to XCode 4.5 with iOS SDK 6.0. Now when i try to archive my app, i get a long list of compiler warnings all reading the same.
我最近使用 iOS SDK 6.0 迁移到 XCode 4.5。现在,当我尝试归档我的应用程序时,我收到一长串编译器警告,所有内容都相同。
warning: no rule to process file '$(PROJECT_DIR)/Classes/Utils.m' of type sourcecode.c.objc for architecture armv6
warning: architecture armv6 is not supported (current ARCHS = "armv7 armv6").
警告:没有规则来处理架构 armv6 的 sourcecode.c.objc 类型的文件“$(PROJECT_DIR)/Classes/Utils.m”
警告:不支持架构 armv6(当前 ARCHS = "armv7 armv6")。
I cannot understand the last line, it says armv6 is not not supported,but armv6 is present as you can see.
我无法理解最后一行,它说不支持 armv6,但如您所见,存在 armv6。
1) How do i fix this?
1)我该如何解决这个问题?
2) What could be the implication of this? as this is just a warning? Will my app update not run of iphone 3gs?
2) 这可能意味着什么?因为这只是一个警告?我的应用更新不会运行 iphone 3gs 吗?
Thanks
谢谢
回答by Sverrisson
Xcode 4.5 has dropped support for armv6 as the warning says. The setting is showing because you had it in a previous version of your project. Just change your setting to compile for armv7 and armv7s (iPhone5).
正如警告所说,Xcode 4.5 已放弃对 armv6 的支持。显示该设置是因为您在项目的先前版本中拥有它。只需更改您的设置以编译 armv7 和 armv7s (iPhone5)。
Apple has decided to drop support for old devices and thus armv6 is deprecated. I decided to drop support for armv6 devices due to this. All armv7 devices can be upgraded to iOS 5, so I also set that as the minimum version supported.
Apple 已决定放弃对旧设备的支持,因此不推荐使用 armv6。由于这个原因,我决定放弃对 armv6 设备的支持。所有 armv7 设备都可以升级到 iOS 5,所以我也将其设置为支持的最低版本。