How to add UIKit to an Xcode project?

妖精的绣舞 提交于 2019-12-23 10:15:37

问题


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?


回答1:


Navigate to the target and go to Build Phases and add UIKit to Link Binary With Libraries.

From the Comments to this post:

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.




回答2:


Check that you are using a iOS project and not a Mac OSX one - UIKit is only for the iPhone/iPad



来源:https://stackoverflow.com/questions/7055937/how-to-add-uikit-to-an-xcode-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!