thesublimeobject
thesublimeobject

Reputation: 1403

UIKit is nowhere to be found?

I can't find UIKit.framework anywhere: it's nowhere in my /System/Library/Framework and I can't add it via Build Phase because it's not there to select. I have installed and re-installed xcode and it's not showing up. It doesn't seem to be directly downloadable either. Any ideas?

Upvotes: 6

Views: 8614

Answers (2)

KiRviz
KiRviz

Reputation: 148

Make sure you have the right Platform set under Playground Settings

Playground settings under Utilities Pane

Upvotes: 0

Lucas van Dongen
Lucas van Dongen

Reputation: 9858

If this is indeed meant to be a question for a Mac OS X application instead of an iOS application @Ken Thomases reply is true. If this question is about making an iOS application with Xcode on Mac OS X then it might be possible your project file is a bit broken. I had to deal with this some weeks ago when all of a sudden I could not add an audio framework.

  • Open Xcode but close all windows so no projects are open
  • Press CMD-SHIFT-2 to go to the Organizer
  • Go to Projects
  • Select your project
  • Press on the Delete button on the line of Derived Data
  • Restart Xcode
  • Open your project
  • Wait until your project has been analyzed

Alternatively you can show the contents of the package of your project file by CTRL-clicking it and selecting Show Package Contents. There are a lot of user based files there, some might be corrupt. Throw these files away and try again. Backup just to be sure.

Your project's settings should look something like this: enter image description here

Build phases:

enter image description here

It's important that you target iOS and that UIKit and Foundation are there

If they're not, try to create a new project

Upvotes: 1

Related Questions