gpt4 book ai didi

iphone - 重新安装 UIKit 和 Foundation 框架后 iOS SDK 损坏

转载 作者:可可西里 更新时间:2023-11-01 05:01:25 26 4
gpt4 key购买 nike

对于 pch 文件,我得到这些错误:

/Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:6:34: error: Foundation/Foundation.h: No such file or directory

/Users/matt/Programming/iPhone Monkey Curling lite/iPhone_Monkey_Curling_Prefix.pch:7:24: error: UIKit/UIKit.h: No such file or directory

这是默认情况下的文件:

//
// Prefix header for all source files of the 'iPhone Monkey Curling' target in the 'iPhone Monkey Curling' project
//

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif

我重新安装了 Xcode 和 iOS SDK,但这并没有解决问题。将 iAd 框架添加到我的一个项目后出现了这个问题,但我的所有项目都无法编译。

我使用的是最新的 SDK (4.1)。

框架在项目中。出于某种原因,当我尝试添加新框架时,它会在 iOS 项目中列出 OS X 框架。

感谢您的帮助。

最佳答案

在 Apple 开发者论坛上,我设法获得了查明问题的帮助。不知何故,构建选项被设置为一些奇怪的东西。

这是“框架搜索路径”选项。如果有人遇到类似问题,请确保这是空的。

关于iphone - 重新安装 UIKit 和 Foundation 框架后 iOS SDK 损坏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4008800/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com