Xcode 6 Beta - Apple Mach-O 链接器错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25388444/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:24:55  来源:igfitidea点击:

Xcode 6 Beta - Apple Mach-O Linker error

iosxcodecompiler-errorsswiftxcode6-beta6

提问by Carlos

After updating to the recently released beta 6 of Xcode 6, my swift project fails to build due to the following errors.

更新到最近发布的 Xcode 6 测试版 6 后,由于以下错误,我的 swift 项目无法构建。

Xcode 6 Beta 6 issue

Xcode 6 Beta 6 问题

Looking at previous questions on this issue, propose checking the build architecture is set to support arm which mine project includes already (arm64, armv7s, armv7).

查看之前关于这个问题的问题,建议检查构建架构是否设置为支持我的项目已经包含的arm(arm64,armv7s,armv7)。

回答by drmarvelous

First, make sure you have the most recent beta installed. Afterwards delete your DerivedData folder ( ~/Library/Developer/Xcode/DerivedData ). This should allow you to compile again in the latest beta.

首先,确保您安装了最新的测试版。然后删除您的 DerivedData 文件夹( ~/Library/Developer/Xcode/DerivedData )。这应该允许您在最新的测试版中再次编译。

Edit: This appears to hold true for the newest beta version of the Xcode as well

编辑:这似乎也适用于最新的 Xcode 测试版

回答by BHendricks

From what I hear, so far Xcode 6 Beta 6 is broken. You should uninstall and rollback to Beta 5.

据我所知,到目前为止 Xcode 6 Beta 6 已损坏。您应该卸载并回滚到 Beta 5。

Edit: Apparently, a new version is already out, just reinstall beta 6

编辑:显然,新版本已经发布,只需重新安装 beta 6

http://9to5mac.com/2014/08/18/apple-re-releases-xcode-6-beta-6-solves-issues-discovered-by-developers-in-new-build/

http://9to5mac.com/2014/08/18/apple-re-releases-xcode-6-beta-6-solves-issues-discovered-by-developers-in-new-build/

回答by jtlim

Make sure you install the latest Xcode Beta 6 version. If you check Xcode->About Xcode, you should see: Version 6.0 (6A280e)

确保安装最新的 Xcode Beta 6 版本。如果您检查 Xcode->About Xcode,您应该看到:Version 6.0 (6A280e)

回答by Marlon Brando

I had the same problem. I reinstalled Xcode. then it fixed the problem. In my case it happened because of deleting a imported framework(move to trash) which is inside my project navigator. I think Xcode delete the whole framework when we delete(move to trash) imported framework from our project navigator.

我有同样的问题。我重新安装了Xcode。然后它解决了问题。在我的情况下,这是因为删除了我的项目导航器中的导入框架(移至垃圾箱)。我认为当我们从项目导航器中删除(移至垃圾箱)导入的框架时,Xcode 会删除整个框架。

回答by Pugin

Make sure you haven't done any unnecessary imports example importing an .h file when you needed .m

确保在需要 .m 时没有执行任何不必要的导入示例导入 .h 文件