Cannot find UIKit.framework
Asked Answered
P

9

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

Pragmatist answered 3/7, 2014 at 4:25 Comment(5)
by mistake it have been deleted , check in trash...Helmsman
I'm 100% sure I didn't delete it. I checked Trash just to be sure, no luck.Pragmatist
Check this : #1533772Dorladorlisa
My problem isnt within Xcode, I just can't understand why I can't find the file...Pragmatist
Try re-installing the XCode . and even it is in beta as wellDorladorlisa
O
5

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

Opalopalesce answered 25/5, 2015 at 2:48 Comment(1)
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.frameworkSaturable
I
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

Inconceivable answered 16/2, 2018 at 17:30 Comment(0)
H
11

New location:

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

Honghonied answered 2/4, 2018 at 0:10 Comment(0)
O
5

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

Opalopalesce answered 25/5, 2015 at 2:48 Comment(1)
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.frameworkSaturable
D
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 
Dinahdinan answered 23/9, 2020 at 17:18 Comment(0)
M
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
Macpherson answered 24/12, 2020 at 19:52 Comment(0)
C
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.

Contentious answered 23/7, 2014 at 20:1 Comment(1)
But there is no exec file inside the framework directory, why?Fascicule
P
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

Pyromorphite answered 5/12, 2018 at 8:30 Comment(0)
S
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

Saturable answered 5/3, 2020 at 3:45 Comment(0)
L
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

Latvian answered 1/3, 2023 at 8:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.