【问题标题】:When I am trying to import VisualRecognitionV3 in Xcode it gives me the error module compiled with swift 3.0 cannot be imported in swift 3.0.2?当我尝试在 Xcode 中导入 VisualRecognitionV3 时,它给了我使用 swift 3.0 编译的错误模块无法在 swift 3.0.2 中导入?
【发布时间】:2017-05-22 18:28:35
【问题描述】:

当我尝试在 Xcode 中导入 VisualRecognitionV3 时,它给了我错误:

swift 3.0编译的模块不能导入swift 3.0.2

这是截图:

有人知道怎么解决吗?

【问题讨论】:

  • 欢迎来到stackoverflow。请访问帮助部分以了解您可以提出哪些类型的问题以及如何写出好问题,stackoverflow.com/help/asking。不符合标准的问题通常会被关闭并删除。
  • 您能否通过从命令行运行xcodebuild -versionswift --version 来提供有关您的环境的更多信息?另外,您能否在重新运行 carthage 并将框架导入您的项目后重试,以确保框架是使用这些相同的版本构建的?

标签: swift xcode ibm-cloud ibm-watson visual-recognition


【解决方案1】:

这类似于此处看到的version issue。基本上,在调用 carthage 时避免使用预编译的二进制文件将解决问题,因此请使用以下 carthage 命令 - “carthage update --platform iOS --no-use-binaries”

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-16
    • 2017-03-08
    • 1970-01-01
    • 1970-01-01
    • 2018-04-12
    • 2017-03-24
    • 1970-01-01
    • 2017-04-05
    相关资源
    最近更新 更多