Xcode 11 Beta 5 - 加载插件失败

Xcode 11 Beta 5 - Loading a plug-in failed

在 Catalina beta 4 上的 Xcode 11 beta 5 运行 中打开 SwiftUI "Hello World" 未更改的项目会产生 "Loading a plug-in failed" 对话框警告。

有没有其他人遇到过这种情况或知道如何解决?我删除了 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";
}
--

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

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

这将消除错误消息,但不会恢复 canvas。

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

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

安装 Catalina build 19A558d 时问题消失了 Xcode 11 GM Seed(build 11A419c,2019 年 9 月 10 日发布)