Xcode 6 Beta - Apple Mach-O Linker error
Asked Answered
P

5

19

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 issue

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

Poland answered 19/8, 2014 at 16:25 Comment(0)
H
38

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

Harewood answered 19/8, 2014 at 16:38 Comment(3)
I fixed Xcode not building my project with this one weird trick!Home
I confirm that this issue still exists in Xcode 6 Beta 7.Histochemistry
I got the same issue with Beta 7, but removing the DerivedData fixed it. I only deleted the DerivedData for the project I was working on, not all my other projects. Building happily nowSaito
K
3

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/

Kelvinkelwen answered 19/8, 2014 at 16:31 Comment(0)
R
2

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

Rangel answered 19/8, 2014 at 16:40 Comment(1)
Thanks, yeap got 6A280ePoland
D
0

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.

Dom answered 31/5, 2015 at 10:27 Comment(0)
M
-1

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

Musselman answered 13/11, 2014 at 21:26 Comment(1)
I suppose, you wanted to say, "Make sure you haven't done any unnecessary imports example importing an .m file when you needed .h" ..?Disarm

© 2022 - 2024 — McMap. All rights reserved.