提问人:J. Edgell 提问时间:7/30/2019 最后编辑:mattJ. Edgell 更新时间:9/13/2019 访问量:3771
Xcode 11 Beta 5 - 加载插件失败
Xcode 11 Beta 5 - Loading a plug-in failed
问:
在 Catalina beta 4 上运行的 Xcode 11 beta 5 中打开未更改的 SwiftUI“Hello World”项目会产生“加载插件失败”对话框警告。
有没有人经历过这种情况或知道如何解决它?我删除了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";
}
--
答:
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.framework
UVKit.framework
评论
0赞
Manel
9/13/2019
这将删除弹出消息,但 SwiftUI 预览画布仍将损坏
1赞
Manel
9/13/2019
#3
安装 Xcode 11 GM Seed(内部版本 11A419c,2019 年 9 月 10 日发布)时,Catalina 内部版本 19A558d 上的问题消失了
评论