在apple developer 下载旧版Xcode
所有旧版Xcode都是罕见的xip格式😓
双击解压,很慢 完成后自动到dock,点击启动,点击install 安装 其他组件,然后失败报错!!!,给了个崩溃报告,点击提交可以查看,很复杂,基本看不懂:(节选)
Application Specific Information:
ProductBuildVersion: 12E507
UNCAUGHT EXCEPTION (NSInternalInconsistencyException):
Error getting value for key 'delegateClass' of extension 'Xcode.Debugger.MenuDefinition.ViewDebugging' in plug-in 'com.apple.dt.dbg.DebuggerUI':
Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed."
UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.dbg.DebuggerUI,
DVTPlugInExecutablePathErrorKey=/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI,
NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.,
DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderKit.framework/Versions/A/IDEInterfaceBuilderKit
Reason: image not found,
NSLocalizedDescription=Loading a plug-in failed.,
NSFilePath=/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin, NSLocalizedFailureReason=The plug-in “com.apple.dt.dbg.DebuggerUI” at path “/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin” could not be loaded.
The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7fb0cdb6eb30 {Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderKit.framework/Versions/A/IDEInterfaceBuilderKit
Reason: image not found" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI, NSDebugDescription=dlopen_preflight(/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderKit.framework/Versions/A/IDEInterfaceBuilderKit
Reason: image not found, NSBundlePath=/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin, NSLocalizedDescription=The bundle “DebuggerUI” couldn’t be loaded because it is damaged or missing necessary resources.}}}
UserInfo: {
NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.dbg.DebuggerUI, DVTPlugInExecutablePathErrorKey=/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator\n Referenced from: /Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderKit.framework/Versions/A/IDEInterfaceBuilderKit\n Reason: image not found, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin, NSLocalizedFailureReason=The plug-in \U201ccom.apple.dt.dbg.DebuggerUI\U201d at path \U201c/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin\U201d could not be loaded.
The plug-in or one of its prerequisite plug-ins may be missing or damaged.,
NSUnderlyingError=0x7fb0cdb6eb30 {Error Domain=NSCocoaErrorDomain Code=3587 \"dlopen_preflight(/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI):
Library not loaded:
/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator\n
Referenced from: /Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderKit.framework/Versions/A/IDEInterfaceBuilderKit\n Reason: image not found\" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI, NSDebugDescription=dlopen_preflight(/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI): Library not loaded:
/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator\n
Referenced from: /Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderKit.framework/Versions/A/IDEInterfaceBuilderKit\n
Reason: image not found, NSBundlePath=/Volumes/Macintosh HDD/Xcode/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin, NSLocalizedDescription=The bundle \U201cDebuggerUI\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.}}}";
}
Open FDs: 11/2560
其中反复提到Library/Developer/PrivateFramework
文件夹一般没有资源库的直接入口,先到访达到设置里设置, 进入就发现没有这个文件夹。
解决
sudo xcodebuild -runFirstLaunch
终端下输入
中文网我没搜到,是stack overflow上一个老哥提供的
说明
Xcode 12.5 for bigger 11.1 in Hackintosh
|