Reputation: 379
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?
Upvotes: 6
Views: 24305
Reputation: 14063
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.
Upvotes: 5
Reputation: 32671
Check that you are using a iOS project and not a Mac OSX one - UIKit is only for the iPhone/iPad
Upvotes: 11