Xcode 11 Beta 5 - 加载插件失败

Xcode 11 Beta 5 - Loading a plug-in failed

提问人:J. Edgell 提问时间:7/30/2019 最后编辑:mattJ. Edgell 更新时间:9/13/2019 访问量:3771

问:

在 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";
}
--
xcode的 试用版

评论

0赞 J. Edgell 7/30/2019
注释基本上只说画布预览的丢失。Catalina 5 尚未提供。我问是否有其他人经历过它,并表示我通过删除模块解决了它。再次询问是否有其他人经历过它,以便我知道它与我的环境无关。
0赞 J. Edgell 7/30/2019
苹果的声明非常模糊,它没有告诉我太多。谢谢你的意见,问是一样的。
0赞 J. Edgell 7/30/2019
它在哪里说“它不受支持”,这与“知道问题”不同。我阅读了已知问题列表,但未列出。所以我不能问这个问题?哇
0赞 matt 7/30/2019
当然,你可以问它(尽管问它的方法是指定你运行的系统,以及 Xcode 测试版)。我只是建议,知道这里是否存在真正问题的唯一方法是在它们都处于 beta 5 时尝试一下。Mojave 上的 Xcode beta 5 肯定没有这样的问题,因此阻抗不匹配很有可能是可以解决的。
1赞 rv7284 8/5/2019
更新到凯特琳娜测试版5后,错误温不复存在。

答:

8赞 MScottWaller 7/30/2019 #1

我能够让我的 SwiftUI 项目在 Catalina beta 4 和 Xcode beta 5 上运行。我也收到了OP提到的警告。

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

评论

0赞 J. Edgell 8/1/2019
谢谢 Scott,这是我确认它没有与我的环境隔离所需的信息,从而节省了我重建笔记本电脑的工作!
0赞 SinaMN75 9/12/2019 #2

这将删除错误消息,但不会恢复画布。

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

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

评论

0赞 Manel 9/13/2019
这将删除弹出消息,但 SwiftUI 预览画布仍将损坏
1赞 Manel 9/13/2019 #3

安装 Xcode 11 GM Seed(内部版本 11A419c,2019 年 9 月 10 日发布)时,Catalina 内部版本 19A558d 上的问题消失了