Xcode 11 Beta 5-加载插件失败

时间:2019-07-30 14:27:27

标签: xcode beta

在Catalina beta 4上运行的Xcode 11 beta 5中打开未更改的SwiftUI“ Hello World”项目会产生“加载插件失败”对话框警告。

enter image description here

其他人是否经历过或知道如何解决?我删除了Xcode,重新下载了它,然后重新安装了它,但仍然出现相同的错误。

除了删除有问题的模块外,不知道如何解决,但这是不对的。

错误详细信息: 详细信息

Loading a plug-in failed.
Domain: DVTPlugInErrorDomain
Code: 2
Failure Reason: The plug-in “com.apple.dt.UVKit” at path “/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework” could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged.
Recovery Suggestion: The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.
User Info: {
    DVTPlugInDYLDErrorMessageErrorKey = "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit, 0): Symbol not found: _$s2IDs12IdentifiablePTl\n  Referenced from: /Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit\n  Expected in: /usr/lib/swift/libswiftCore.dylib\n in /Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit";
    DVTPlugInExecutablePathErrorKey = "/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit";
    DVTPlugInIdentifierErrorKey = "com.apple.dt.UVKit";
    NSFilePath = "/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework";
}
--
The bundle “UVKit” couldn’t be loaded.
Domain: NSCocoaErrorDomain
Code: 3588
Failure Reason: The bundle couldn’t be loaded.
Recovery Suggestion: Try reinstalling the bundle.
User Info: {
    NSBundlePath = "/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework";
    NSDebugDescription = "dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit, 265): Symbol not found: _$s2IDs12IdentifiablePTl\n  Referenced from: /Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit\n  Expected in: /usr/lib/swift/libswiftCore.dylib\n in /Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit";
    NSFilePath = "/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework/UVKit";
}
--

3 个答案:

答案 0 :(得分:8)

我能够使我的SwiftUI项目在带有Xcode beta 5的Catalina beta 4上运行。我也得到了OP提到的警告。

正如评论中提到的那样,我所看到的唯一负面影响是无法使用预览画布。除此之外,我项目中的其他一切都运行良好。只是更多地使用模拟器;)

答案 1 :(得分:1)

安装Xcode 11 GM Seed(版本11A419c,于2019年9月10日发布)时,卡塔琳娜州版本19A558d出现问题

答案 2 :(得分:0)

这将消除错误消息,但不会带回画布。

基于: https://forums.developer.apple.com/thread/120614

请转到:/Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework并删除UVKit.framework所有文件夹中的所有快捷方式文件(请确保不要删除原始文件)。