Could not build module 'Foundation' in Xcode 6
Asked Answered
V

1

6

I have searched Stack Overflow, Google and fellow peers for a current workaround in Xcode 6 for this error but have failed in doing so.

Note that this error occurs ONLY when attempting to run my app ON A DEVICE USING XCODE 6. (This is not an issue when using the simulators, and I can build my app on a device using Xcode 5)

It seems to be a framework or library issue, but since it is able to work in almost every other possible way, I am not sure where the solution resides. I was using Xcode 6.0.

Here is the error:

error1

error

I have checked my architecture settings, my frameworks and project files. Everything that needs to be included seems to be there. arch

This looks like it might be a silly error to do with Cocos2d and/or Xcode6. I have used SpriteBuilder to create the app. If you have a fix or have this error, any insight would be appreciated, thank you!

Vascular answered 19/10, 2014 at 19:51 Comment(0)
V
5

Found a fix. Downloaded the new Xcode6 version from the App Store. Xcode 6.0.1 (6A317) and it runs on all devices and simulators. (There was no notification to update Xcode, you must search for it and download the new version)

Vascular answered 20/10, 2014 at 16:36 Comment(3)
How does that make it a "temporary" fix? Do you plan on downgrading again sometime in the future? ;) Also, in case of such issues, be sure to clean project and restart Xcode. Sometimes this can help change Xcode's mind.Tanagra
You're right. Unfortunately, cleaning the project and restarting Xcode was not helping in this situation. Updating worked like a charm :)Vascular
I had this problem with Xcode 6.1 and just reinstalled Xcode 6.1 and it worked again. (facepalm)Gerbil

© 2022 - 2024 — McMap. All rights reserved.