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

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

问题描述

我最近将Xcode更新到了5.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 架构 - 但很多第三方项目尚不支持,所以我建议将其从中删除架构设置再次(让您使用 armv7 armv7s )。尽管如此,请将其保留在有效架构设置中 - 这指定了它可以运行的架构。

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天全站免登陆