简体   繁体   English

Xcode 11 Beta 5 - 加载插件失败

[英]Xcode 11 Beta 5 - Loading a plug-in failed

Opening a SwiftUI "Hello World" unaltered project in Xcode 11 beta 5 running on Catalina beta 4 produces a "Loading a plug-in failed" dialog warning. 在Catalina beta 4上运行的Xcode 11 beta 5中打开SwiftUI“Hello World”未改变的项目会产生“加载插件失败”对话框警告。

在此输入图像描述

Has anyone else experienced this or know how to solve it? 有没有其他人经历过这个或知道如何解决它? I deleted Xcode, redownloaded it, reinstalled it and I'm still getting the same error. 我删除了Xcode,重新加载它,重新安装它,我仍然得到同样的错误。

No idea how to fix other than deleting the offending module, but that can't be right. 除了删除违规模块之外,不知道如何修复,但这不可能是正确的。

Error details: Details 错误详情:详情

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";
}
--

I was able to get my SwiftUI project running on Catalina beta 4 with Xcode beta 5. I too got the warning mentioned by OP. 我能够使用Xcode beta 5在Catalina beta 4上运行我的SwiftUI项目。我也得到了OP提到的警告。

And as mentioned in comments, the only negative impact I've seen is being unable to use the preview canvas. 正如评论中所提到的,我看到的唯一负面影响是无法使用预览画布。 Other than that, everything else in my project is running well. 除此之外,我项目中的其他一切运行良好。 Just using the simulator more ;) 只需使用模拟器;)

this will get rid of the error message but will not bring canvas back. 这将消除错误消息,但不会带回画布。

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

Please go to: /Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework and delete all the shortcut files in all folders of UVKit.framework (Be sure DONOT delete orginal files). 请转到: /Applications/Xcode-beta.app/Contents/PlugIns/UVKit.framework并删除UVKit.framework所有文件夹中的所有快捷方式文件(确保DONOT删除原始文件)。

当安装Xcode 11 GM Seed(建于公元11A419c,发布于2019年9月10日)时,Catalina build 19A558d问题已经消失

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM