如何将 UIKit 添加到 Xcode 项目中? [英] How to add UIKit to an Xcode project?
问题描述
我已将另一个程序员的项目导入 Xcode,并收到错误未找到 UIKit/UIKit.h 文件".我尝试右键单击 Frameworks 文件夹,但没有看到添加它的方法.如何将 UIKit 添加到此项目?
I've imported another programmer's project into Xcode and get the error "UIKit/UIKit.h file not found." I tried right clicking the Frameworks folder but didn't see a way to add it. How can I add the UIKit to this project?
推荐答案
导航到目标并转到 Build Phases
并将 UIKit 添加到 Link Binary With Libraries
.
Navigate to the target and go to Build Phases
and add UIKit to Link Binary With Libraries
.
从评论到这篇文章:
MonkeyBusiness:很抱歉浪费您的时间.我已将该项目设置为 MacOS 而不是 iOS.如您所见,我是 Apple 和 iOS 的新手.
MonkeyBusiness: Sorry to waste your time. I had set the project up as MacOS rather than iOS. I'm new to Apple and iOS as you can see.
这篇关于如何将 UIKit 添加到 Xcode 项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!