【问题标题】:Xcode 11 Beta 5 - Loading a plug-in failedXcode 11 Beta 5 - 加载插件失败
【发布时间】:2019-12-07 23:39:31
【问题描述】:

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

【问题讨论】:

  • 注释基本上只说画布预览的丢失。 Catalina 5 尚不可用。我在问是否有其他人经历过它并表示我通过删除一个模块来解决它。再次询问是否有其他人经历过,以便我知道它与我的环境无关。
  • Apple 的声明非常含糊,并没有告诉我太多。谢谢你的意见,问是一样的。
  • 它在哪里说“不支持”与“知道问题”不同。我阅读了已知问题列表,但未列出。所以我不能问这个问题吗?哇
  • 你可以问它,当然(尽管问它的方式是指定你正在运行的系统,以及 Xcode 测试版)。我只是建议知道这里是否存在真正问题的唯一方法是在它们都处于 beta 5 时尝试它。Mojave 上的 Xcode beta 5 肯定没有这样的问题,所以很有可能阻抗不匹配是有责任的。
  • 更新到 Catelina beta 5 后,错误没有消失。

标签: xcode beta


【解决方案1】:

安装 Xcode 11 GM Seed(版本 11A419c,2019 年 9 月 10 日发布)时,Catalina build 19A558d 出现问题

【讨论】:

    【解决方案2】:

    这将消除错误消息,但不会带回画布。

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

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

    【讨论】:

    • 这会删除弹出消息,但 SwiftUI 预览画布仍然会损坏
    【解决方案3】:

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

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

    【讨论】:

    • 谢谢 Scott,这是我需要的信息来确认它没有与我的环境隔离,从而节省了我重建笔记本电脑的工作!
    猜你喜欢
    • 1970-01-01
    • 2011-09-20
    • 1970-01-01
    • 2020-01-01
    • 2019-12-19
    • 2018-11-25
    • 1970-01-01
    • 2019-12-15
    • 1970-01-01
    相关资源
    最近更新 更多