找不到 Xcode6 'Foundation/Foundation.h' 文件 [英] Xcode6 'Foundation/Foundation.h' file not found
问题描述
使用 Xcode6-Beta,我无法编译代码以在我的 iOS7.1 设备上运行.我收到这样的错误:
Using Xcode6-Beta, I'm unable to compile code to run on the my iOS7.1 device. I get errors like this:
While building module 'UIKit' imported from /Users/johnboiles/Programming/iOS/Playground-ios/Playground-ios/AppDelegate.h:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
^
In file included from /Users/johnboiles/Programming/iOS/Playground-ios/Playground-ios/AppDelegate.m:9:
/Users/johnboiles/Programming/iOS/Playground-ios/Playground-ios/AppDelegate.h:9:9: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~^
有趣的是 Foundation.framework
实际上不在 /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks
就像在以前版本的 Xcode 中一样.我还没有(至少有意识地)修改 SDK 中的任何内容.
Interestingly Foundation.framework
is in fact NOT in /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks
like it was in previous versions of Xcode. I haven't (knowinglyly at least) modified anything in the SDKs.
推荐答案
删除并重新安装 Xcode6-Beta 解决了该问题.
Removing and reinstalling Xcode6-Beta fixed the issue.
如果有人对 Foundation.framework 发生的事情有任何了解,我很乐意听到.
If anyone has any insight into what happened to Foundation.framework, I'd love to hear it.
这篇关于找不到 Xcode6 'Foundation/Foundation.h' 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!