xcode - Xcode 11 Beta 5 - 加载插件失败
问题描述
在 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";
}
--
解决方案
我能够使用 Xcode beta 5 在 Catalina beta 4 上运行我的 SwiftUI 项目。我也收到了 OP 提到的警告。
正如评论中提到的,我看到的唯一负面影响是无法使用预览画布。除此之外,我项目中的其他一切都运行良好。只是更多地使用模拟器;)
推荐阅读
- flutter - 如何在颤动的谷歌地图中添加多个标记
- sql - 使用 sysdate 时如何在查询中搜索日期
- r - 确定点位于哪个多边形中
- anaconda - 无法在 Jupyter Notebook 上安装 fastai
- javascript - stripe - 不能对新的 paymentIntents 使用相同的支付方式
- java - 为什么在这个 Trie 算法中 C++ 比 Java 慢很多?
- python - 基于索引列表组合/求和 numy 数组的行
- excel - 如何在Excel中的单个单元格中获取学生状态为通过或失败的数字列表
- python - 如何让输入框检测字母并发出警告说“仅限数字”
- android - 如何在不覆盖正常行为的情况下为 AutocompleteSupportFragment 设置 onClickListener