未找到 UIKit/UIKit.h 文件 - XCode 4.6.1 - Objective-C

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15578595/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:02:45  来源:igfitidea点击:

UIKit/UIKit.h file not found - XCode 4.6.1 - Objective-C

iosobjective-cxcode

提问by Johnny Dahdah

After I updated XCode to 4.6.1 version, when I open a project developed in the last Xcode version, it gives me an error on every ".h" class I have, in the import <UIKit/UIKit.h>line. The error I'm having is "UIKit/UIKit.h file not found". How can I solve this?

在我将 XCode 更新到 4.6.1 版本后,当我打开一个在上一个 Xcode 版本中开发的项目时,它在我拥有的每个“.h”类上都给我一个错误,import <UIKit/UIKit.h>在行中。我遇到的错误是“未找到 UIKit/UIKit.h 文件”。我该如何解决这个问题?

采纳答案by toasted_flakes

You certainly need to re-add UIKitto your frameworks under Build phases.

您当然需要UIKitBuild phases.