armv7 iPhone 警告

发布于 2024-11-03 04:19:00 字数 658 浏览 1 评论 0原文

尝试构建我的项目时,我收到以下警告。大约有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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡写薰衣草的香 2024-11-10 04:19:00

您混淆了两个不同的东西 - 您的部署目标和基础 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文