【问题标题】:Why Rswift is not working on Xcode10 with Carthage?为什么 Rswift 不使用 Carthage 开发 Xcode10?
【发布时间】:2018-10-05 20:45:34
【问题描述】:

我正在使用 Rswift 和 Carthage。 以前我用的是Xcode9.4.1,没有问题。 但是当我更新到 Xcode10 时, 看起来 Rswift 不太好用。

我有这个错误

使用 Swift 4.1.2 编译的模块不能被 Swift 4.2 编译器导入:

实际上在 Xcode 构建设置中,我仍然使用 Xcode4。所以也想知道为什么 Xcode 10 尝试使用 Swift4.2。 Xcode build setting

我该如何解决这个错误?

【问题讨论】:

标签: swift4 xcode10 carthage


【解决方案1】:

这是可能,因为您使用不同的 工具链 运行了 carthage bootstrapcarthage update - 显然是因为 Xcode 9.4.1 Xcode 10 使用不同的默认工具链。

所以,要解决这个问题,只需运行carthage bootstrap,它就会正确启动。

顺便说一句:如果你在本地还有 Xcode 9.4.1,它可能还在使用它的工具链。要指定工具链,请参阅answer

【讨论】:

    猜你喜欢
    • 2017-12-17
    • 2015-04-28
    • 2018-06-05
    • 2018-11-14
    • 2010-12-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-25
    相关资源
    最近更新 更多