更新到 Xcode 5.1 后,iOS 7.1 出现错误 [英] iOS 7.1 gives error after updating to Xcode 5.1

查看:29
本文介绍了更新到 Xcode 5.1 后,iOS 7.1 出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的 Xcode 更新到了 5.1 版.更新后,它在除 iOS 7.1 之外的所有模拟器上都能正常运行,在 iOS 7.1 中会出现 mach-O 链接错误.此外,构建设置"选项卡中只有 64 位架构选项.据我说,这是所有问题的原因&错误.有没有人知道这个的原因&怎么解决?

I have updated my Xcode to version 5.1 recently. After update, it runs fine with all simulators except iOS 7.1, in which it gives a mach-O link error. Moreover, there is only a 64-bit architecture option in 'Build setting' tab. According to me, it is the cause of all the problems & errors. Does anybody know reason for this & how to solve it?

这里有一些警告&我遇到的错误:

Here are some warnings & errors I've got:

警告:

Values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead

错误:

Symbol(s) not found for architecture x86_64

谢谢.

推荐答案

Xcode 5.1 更改了标准项目设置.其中,它现在包括项目的 arm64 架构 - 但许多 3rd 方项目尚不支持该架构,因此我建议将其从 架构 设置中删除再次(给你留下 armv7armv7s).但是,请将其保留在有效架构设置中 - 这指定了它可以在哪些架构上运行.

Xcode 5.1 changed the standard project settings. Among others it now includes the arm64 architecture for the project - but a lot of 3rd party projects don't support that yet, so I recommend to remove it from the architectures settings again (leaving you with armv7 and armv7s). Keep it in the valid architectures setting, though - this specifies on which architectures it may run.

它还引入了一些额外警告的默认激活,例如对长警告的类型转换 - 在这里同样计数,当您使用相当多的其他库(作为源代码)时,您可能会收到很多您不能(或不不想)做太多事情.您可以再次为这些项目禁用警告,或者选择不立即更新您的项目设置.

It also introduced the default activation of some extra warnings, like the typecast to long warning - same counts here, when you use quite some other libraries (as source code) you might get lots of warnings you can't (or don't want to) do much about. You can disable the warnings again for those projects, or choose not to update your project settings right away.

这篇关于更新到 Xcode 5.1 后,iOS 7.1 出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆