Ios 找不到UIKit.framework

Ios 找不到UIKit.framework,ios,xcode,frameworks,uikit,xcode6,Ios,Xcode,Frameworks,Uikit,Xcode6,我目前正在运行Xcode 6 beta 2,但找不到UIKit.framework。 我查看了中建议的系统/库/框架 除了UIKit,其他所有框架都在那里 注意:我在导入UIKit框架时没有遇到任何问题,我猜您已经找到了,但请注意:UIKit.framework仅在iOS平台上可用。路径/System/Library/Frameworks/包含Mac OS X安装的框架(而不是Xcode) 至少在使用Xcode时,iOS项目中使用的iOS框架如下: /Applications/Xcode6-Be

我目前正在运行Xcode 6 beta 2,但找不到UIKit.framework。 我查看了中建议的系统/库/框架

除了UIKit,其他所有框架都在那里


注意:我在导入UIKit框架时没有遇到任何问题,我猜您已经找到了,但请注意:UIKit.framework仅在iOS平台上可用。路径/System/Library/Frameworks/包含Mac OS X安装的框架(而不是Xcode)

至少在使用Xcode时,iOS项目中使用的iOS框架如下:

/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中的一些配置。修复它的更简单方法可能是删除它并重新安装。

UIKit.framework在这里

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks

在较新的Xcode版本中,iPhoneOS框架不再包含二进制文件,而是包含二进制文件。您可以在以下路径找到模拟器二进制文件:


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

新地点:


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

为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
我在这里找到的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 
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

由于错误,它已被删除,请检查垃圾箱…我100%确定我没有删除它。我检查垃圾只是为了确定,没有运气。检查这个:我的问题不在Xcode中,我只是不明白为什么找不到文件…尝试重新安装Xcode。即使它是beta版,但框架目录中没有exec文件,为什么?