7

I am currently running Xcode 6 beta 2, and I can't find the UIKit.framework. I've looked in System/Library/Frameworks as suggested in Apple's reference page

All the other frameworks are there, except UIKit.

Note: I have no issues importing the UIKit framework

Josh
  • 177
  • 3
  • 14

8 Answers8

13

In the newer Xcode versions the iPhoneOS frameworks do no longer include a binary, but include a tbd file. You can find simulator binaries at this path:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks

iCaramba
  • 2,455
  • 14
  • 30
11

New location:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks

Max Seelemann
  • 9,239
  • 4
  • 31
  • 39
Mihaela
  • 2,402
  • 3
  • 21
  • 27
5

UIKit.framework is here /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks

0oneo
  • 677
  • 7
  • 10
4

iOS 14, Xcode 12 path I've found here

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework/UIKit 
Michał Ziobro
  • 7,390
  • 6
  • 50
  • 99
2

I'm guessing you already find it out, but just for the record: the UIKit.framework is available only on iOS platform. The path /System/Library/Frameworks/ contains the frameworks that your Mac OS X has installed (not your Xcode).

The iOS frameworks that are used in iOS projects, at least when using Xcode, is the following:

/Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks

The Xcode6-Beta4.app part of the path is the app name of your Xcode in your Applications folder, that can be somewhat different if you have another version installed. Also, the iPhoneOS8.0.sdk can be different if you're using other SDK version (iOS 7.0, for example).

EDIT: If the UIKit.framework is there, then you probably changed some configuration in your Xcode. The easier way to fix it is probably by deleting it and reinstalling.

B.R.W.
  • 1,555
  • 9
  • 15
2

Updated for Xcode 11.3:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework

joey
  • 3,433
  • 8
  • 41
  • 64
1

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore

Jichao Wu
  • 230
  • 3
  • 9
0

The path to UIKitCore (which actually contains everything in UIKit) in Xcode 12 is:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
Jonathan.
  • 51,850
  • 46
  • 174
  • 275