无法在 Xcode 6 中构建模块“基础”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26454705/
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
Could not build module 'Foundation' in Xcode 6
提问by Mark Barrasso
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.
我已经在 Stack Overflow、Google 和其他同行中搜索了 Xcode 6 中针对此错误的当前解决方法,但未能这样做。
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)
请注意,此错误仅在尝试在使用 XCODE 6 的设备上运行我的应用程序时发生。(使用模拟器时这不是问题,我可以使用 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.
这似乎是一个框架或库问题,但由于它几乎可以以所有其他可能的方式工作,我不确定解决方案在哪里。我使用的是 Xcode 6.0。
Here is the error:
这是错误:
I have checked my architecture settings, my frameworks and project files. Everything that needs to be included seems to be there.
我已经检查了我的架构设置、我的框架和项目文件。需要包含的所有内容似乎都在那里。
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!
对于 Cocos2d 和/或 Xcode6,这看起来可能是一个愚蠢的错误。我使用 SpriteBuilder 来创建应用程序。如果您有修复或有此错误,任何见解将不胜感激,谢谢!
采纳答案by Mark Barrasso
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)
找到了解决办法。从 App Store 下载了新的 Xcode6 版本。 Xcode 6.0.1 (6A317)并且它可以在所有设备和模拟器上运行。(没有更新Xcode的通知,你必须搜索它并下载新版本)