找不到Xcode6'Foundation / Foundation.h'文件
使用Xcode6-Beta,我无法编译代码在我的iOS7.1设备上运行。 我得到这样的错误:
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中。 我没有(至less在知识上)修改了SDK中的任何东西。
删除并重新安装Xcode6-Beta修复了这个问题。
如果有人对Foundation.framework发生了什么有深入的了解,我很乐意听到。
Product->Clean
为我做了诡计
我做了以下步骤,一切都恢复正常。
- 重新安装当前的Xcode
- 在Xcode第一次启动时,
Shift + Command + K
清除以前的版本 - 等到索引完成。
- 重新构build。
- 核心数据如何更新logging?
- 如何使用自动布局将UILabel设置为UICell宽度的百分比
- UIApplicationDidBecomeActive与UIApplicationWillEnterForeground的区别
- Scenekit – 基于世界坐标轴的旋转子子节点的convertTransform
- 无法在swift中的viewDidLoad()中重载函数
- Xcode 5 – 如何添加标题searchpath并使用GDataXMLNode
- 跟踪多点触控中的触摸点
- UIActivityViewController Facebook和Twitter共享不能在发布的iOS版本中使用
- iOS AMSlideMenu接收器(<MainVC:0x8f92a90>)没有标识符为'rightMenu'的segue