【问题标题】:How can I compile a library with Carthage using the latest beta of Xcode?如何使用最新的 Xcode 测试版使用 Carthage 编译库?
【发布时间】:2016-10-19 00:10:12
【问题描述】:

我正在使用 Xcode 8 Beta (8S128d) 测试 Swift 3,这导致我的 Carthage 构建的库与源代码库不兼容。

Module file was created by an older version of the compiler; rebuild 'SwiftValidator' and try again.

如何配置 Carthage 以使 carthage update 使用 Beta 编译器而不是标准编译器?

【问题讨论】:

    标签: xcode carthage


    【解决方案1】:

    我将 Beta 版移至 /Applications。

    sudo xcode-select -s /Applications/Xcode-beta.app/ 将要使用的 Xcode 设置为 beta。

    carthage update --platform iOS --no-use-binaries 为 iOS 构建库并阻止 Carthage 下载现有的(但不兼容的)预编译二进制文件。

    【讨论】:

    • 运行第二步时出现以下类型的错误 以下构建命令失败:CompileSwift normal arm64 /Users/noah/Desktop/XCode/PKS+SS/Carthage/Checkouts/SQLite.swift/ SQLite/Typed/CoreFunctions.swift CompileSwift 正常 arm64 /Users/noah/Desktop/XCode/PKS+SS/Carthage/Checkouts/SQLite.swift/SQLite/Extensions/R*Tree.swift CompileSwift 正常 arm64 /Users/noah/Desktop/ XCode/PKS+SS/Carthage/Checkouts/SQLite.swift/SQLite/Core/Blob.swift(5次失败)
    猜你喜欢
    • 1970-01-01
    • 2015-11-12
    • 2020-01-04
    • 1970-01-01
    • 1970-01-01
    • 2014-11-30
    • 2015-10-06
    • 2011-08-08
    • 1970-01-01
    相关资源
    最近更新 更多