8

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
  • 197
  • 1
  • 4
  • 15

9 Answers9

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,589
  • 16
  • 31
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,344
  • 4
  • 34
  • 40
Mihaela
  • 2,482
  • 3
  • 21
  • 27
5

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

0oneo
  • 695
  • 7
  • 10
  • Xcode 13 beta location: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework – jjjjjjjj Jun 25 '21 at 13:00
5

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
  • 10,759
  • 11
  • 88
  • 143
3

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.
  • 53,997
  • 54
  • 186
  • 290
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,566
  • 9
  • 15
2

/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
  • 250
  • 3
  • 9
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

jjjjjjjj
  • 4,203
  • 11
  • 53
  • 72
0

You can find UIKit Mach-O file in both Mac(Xcode installed) and iOS:

  1. In mac, the path of UIKit 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(for Xcode 14.2)

  2. In iOS, there is a image file: /System/Library/Caches/com.apple.dyld/dyld_shared_cache_X, you can use dsc_extrator to extract all contents of this image file into a directory(such as arm64). Then the UIKit is located in arm64/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore

HanleyLee
  • 61
  • 2