How to add UIKit to an Xcode project?
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?
2 Solutions Collect From Internet About “How to add UIKit to an Xcode project?”
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.
Check that you are using a iOS project and not a Mac OSX one – UIKit is only for the iPhone/iPad
- I didn't check the Targeted for iPad option when creating a View Controller. How can I fix my UIView to be targeted for iPad devices using XCode 4.2?
- UILabel wrong word wrap in iOS 11
- Xcode, Duplicate symbol _main
- unwrapping multiple optionals in if statement
- How can I reset iOS 9 Universal Linking settings?
- How can I save and load the alpha values of a UIButton in an app?
- Cocoa error 260
- How can I add a font to my Cocos2D iOS project and use it with a CCLabelTTF?
- Storyboard prepareForSegue
- Xcode 5: failed to get the task for process
- setBackgroundImage forBarMetrics image size?
- How can a connection started with NSURLConnection while in the foreground be continued in the background?
- NSBundle pathForResource returns nil with subdirs
- Hide autolayout UIView : How to get existing NSLayoutConstraint to update this one
- How to NSLog into a file