【问题标题】:got error when trying to use playground book template from apple尝试使用 Apple 的 Playground Book 模板时出错
【发布时间】:2020-04-18 07:29:32
【问题描述】:

我得到这个错误:

/Users/.../Downloads/Swift_Playgrounds_Author_Template_for_Xcode_11.3/Template/PlaygroundBook/Modules/BookCore.playgroundmodule/Sources/LiveViewSupport.swift:9:8:使用 Swift 5.1 编译的模块不能被 Swift 5.2.2 导入编译器:/Users/.../Downloads/Swift_Playgrounds_Author_Template_for_Xcode_11.3/Template/SupportingContent/PlaygroundsFrameworks/iphonesimulator/PlaygroundSupport.framework/Modules/PlaygroundSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

当我尝试运行从 Apple 下载的最新 Playground Book 模板时。

我已经设置了链接器标志 BUILD_LIBRARY_FOR_DISTRIBUTION = 是

对于所有库和项目本身 -> 没有帮助

【问题讨论】:

    标签: swift swift-playground


    【解决方案1】:

    设置BUILD_LIBRARY_FOR_DISTRIBUTION 应该在被导入的框架上设置。 Apple 似乎没有更新框架并应用此设置。您应该提交错误报告。

    这个讨论发生在论坛上:https://forums.developer.apple.com/thread/126800

    【讨论】:

      猜你喜欢
      • 2018-11-26
      • 1970-01-01
      • 1970-01-01
      • 2021-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-01
      • 1970-01-01
      相关资源
      最近更新 更多