简体   繁体   English

Xcode 6 Beta - Apple Mach-O Linker错误

[英]Xcode 6 Beta - Apple Mach-O Linker error

After updating to the recently released beta 6 of Xcode 6, my swift project fails to build due to the following errors. 在更新到最近发布的Xcode 6的beta 6之后,由于以下错误,我的swift项目无法构建。

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)。

First, make sure you have the most recent beta installed. 首先,确保您安装了最新的测试版。 Afterwards delete your DerivedData folder ( ~/Library/Developer/Xcode/DerivedData ). 然后删除DerivedData文件夹(〜/ Library / Developer / Xcode / DerivedData)。 This should allow you to compile again in the latest beta. 这应该允许您在最新的测试版中再次编译。

Edit: This appears to hold true for the newest beta version of the Xcode as well 编辑:这似乎也适用于最新的Xcode测试版

From what I hear, so far Xcode 6 Beta 6 is broken. 据我所知,到目前为止Xcode 6 Beta 6已被破坏。 You should uninstall and rollback to Beta 5. 您应该卸载并回滚到Beta 5。

Edit: Apparently, a new version is already out, just reinstall beta 6 编辑:显然,新版本已经出来,只需重新安装测试版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/

Make sure you install the latest Xcode Beta 6 version. 确保安装最新的Xcode Beta 6版本。 If you check Xcode->About Xcode, you should see: Version 6.0 (6A280e) 如果您检查Xcode->关于Xcode,您应该看到: Version 6.0 (6A280e)

I had the same problem. 我有同样的问题。 I reinstalled Xcode. 我重新安装了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会删除整个框架。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM