我目前正在运行Xcode 6 beta 2,但我找不到UIKit.framework。 我按照Apple's reference page
中的建议查看了系统/库/框架所有其他框架都在那里,除了UIKit。
注意:我在导入UIKit框架时没有问题
答案 0 :(得分:10)
在较新的Xcode版本中,iPhoneOS框架不再包含二进制文件,而是包含tbd file。您可以在此路径中找到模拟器二进制文件:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
答案 1 :(得分:9)
新位置:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
答案 2 :(得分:4)
UIKit.framework在这里
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
答案 3 :(得分:3)
我在这里找到的iOS 14,Xcode 12路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework/UIKit
答案 4 :(得分:2)
我猜你已经找到了,但仅仅是为了记录:UIKit.framework仅在iOS平台上可用。路径 / System / Library / Frameworks / 包含Mac OS X已安装的框架(而非Xcode)。
iOS项目中使用的iOS框架,至少在使用Xcode时,如下所示:
/Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks
路径的 Xcode6-Beta4.app 部分是您的“应用程序”文件夹中Xcode的应用程序名称,如果您安装了其他版本,则可能会有所不同。此外,如果您使用其他SDK版本(例如iOS 7.0), iPhoneOS8.0.sdk 可能会有所不同。
编辑:如果UIKit.framework存在,那么您可能在Xcode中更改了一些配置。修复它的更简单方法可能是删除它并重新安装。答案 5 :(得分:2)
已针对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
答案 6 :(得分:0)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/ UIKitCore
答案 7 :(得分:0)
Xcode 12 中 UIKitCore(实际上包含 UIKit 中的所有内容)的路径是:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore