gpt4 book ai didi

ios - 在真正的iOS设备上找不到UIKit.h文件

转载 作者:行者123 更新时间:2023-12-01 16:52:19 30 4
gpt4 key购买 nike

我正在尝试测试一个示例iOS应用程序,该示例iOS应用程序可以在模拟器上正常运行,而在真正的iOS设备上构建失败,并出现以下错误:
“找不到UIKit / UIKit.h”。生成错误的文件是“TestRealDevice-Prefix.pch”

//
// Prefix header for all source files of the 'TestRealDevice' target in the 'TestRealDevice' project
//
#import <Availability.h>
#ifndef __IPHONE_4_0
#warning "This project uses features only available in iOS SDK 4.0 and later."
#endif

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

UIKit.framework,Foundation.framework和CoreGraphics.framework在“构建阶段”选项卡中具有红色!

我尝试运行示例项目而不修改其中的任何内容,但是我遇到了相同的错误

谢谢。

最佳答案

从“构建阶段”选项卡中删除UIKit,Foundation和CoreGraphics框架,然后再次添加它们。

关于ios - 在真正的iOS设备上找不到UIKit.h文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14603018/

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