我正在尝试创建一个新的iOS/Swift项目并使用carthage集成ReactiveCocoa.
我正在运行Xcode 7.1.1.
我的cartfile只有一行:
github "ReactiveCocoa/ReactiveCocoa"
运行时carthage update
,我收到以下构建错误:
以下构建命令失败:
CompileSwift normal x86_64 Users/nburk/Developer/RxTicTacToe/Carthage/Checkouts/Result/Carthage/Checkouts/Box/Box/Box.swift
CompileSwift normal x86_64 /Users/nburk/Developer/RxTicTacToe/Carthage/Checkouts/Result/Carthage/Checkouts/Box/Box/MutableBox.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(3次失败)
然后更多信息:
/Users/nburk/Developer/RxTicTacToe/Carthage/Checkouts/Result/Carthage/Checkouts/Box/Box/Box.swift:6:37:错误:'Printable'已重命名为'CustomStringConvertible'
/Users/nburk/Developer/RxTicTacToe/Carthage/Checkouts/Result/Carthage/Checkouts/Box/Box/Box.swift:31:10:错误:'toString'已重命名为'String'
/Users/nburk/Developer/RxTicTacToe/Carthage/Checkouts/Result/Carthage/Checkouts/Box/Box/MutableBox.swift:8:51:错误:'Printable'已重命名为'CustomStringConvertible'
/Users/nburk/Developer/RxTicTacToe/Carthage/Checkouts/Result/Carthage/Checkouts/Box/Box/MutableBox.swift:25:10:错误:'toString'已重命名为'String'shell任务失败,退出代码65:**建筑失败**
有谁知道如何解决这一问题?
仍然没有稳定版本ReactiveCocoa 4
,并且由于你没有指定版本,它正在下载最后一个稳定版本:3.0
,它与之不兼容Swift 2.x
.
你想要做的是添加一个特定的版本:
github "ReactiveCocoa/ReactiveCocoa" "v4.0.0-RC.2"