简体   繁体   中英

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问题

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

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.

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

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

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

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. If you check Xcode->About Xcode, you should see: Version 6.0 (6A280e)

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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