armv7 iPhone 警告
尝试构建我的项目时,我收到以下警告。大约有160个类似的警告,这很烦人
ld:警告:CPU_SUBTYPE_ARM_ALL 子类型已弃用:/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a (_udivsi3.o)
和
警告:(armv7)/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a(_divdi3.o ) 目标文件'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a(_divdi3.o)' 不包含体系结构armv7 的信息。
所有警告都与 libgcc.a 相关。
我需要这个应用程序来支持 iOS 3.2 及更高版本。那么我该怎么做才能删除这些警告呢?
I get the following warnings when trying to build my project. There are about 160 warnings similar to them which is annoying
ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a(_udivsi3.o)
and
warning: (armv7) /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a(_divdi3.o) object file '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a(_divdi3.o)' doesn't contain architecture information for armv7.
All of the warnings are related to libgcc.a.
I need this application to support iOS 3.2 and later. So what can I do to remove these warnings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您混淆了两个不同的东西 - 您的部署目标和基础 SDK。您的部署目标定义了您打算运行的 iOS 版本。将您的基础 SDK 设置为可用的最新版本。将部署目标设置为 iOS 3.2。
话虽如此,对于几乎所有情况,我认为现在针对 iOS 3 可能是一个错误。 iOS 6即将发布,几乎所有人都升级到了iOS 3.2以上。您确定需要这样做吗?
You're mixing up two different things - your deployment target and your base SDK. Your deployment target defines which iOS versions you intend to run on. Set your base SDK to the latest version available. Set your deployment target to iOS 3.2.
Having said that, for almost all cases, I think it's probably a mistake to target iOS 3 these days. iOS 6 is about to be released, and almost everybody has upgraded beyond iOS 3.2. Are you sure you need to do this?