9

我正在一台新机器上安装迦太基。

$ brew install Carthage

[in project root] $ emacs Cartfile

# Alamofire
github "Alamofire/Alamofire"

# SwifyJSON
github "SwiftyJSON/SwiftyJSON"

$ carthage update

*** Fetching SwiftyJSON
*** Fetching Alamofire
*** Checking out Alamofire at "1.2.3"
*** Checking out SwiftyJSON at "2.2.0"
*** xcodebuild output can be found in /var/folders/8n/044rh7_j6nlcdtsb3cgp_snc0000gn/T/carthage-xcodebuild.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
A shell task failed with exit code 65:
** BUILD FAILED **


The following build commands failed:
    CompileSwift normal x86_64 [project root]/Carthage/Checkouts/Alamofire/Source/Request.swift
    CompileSwift normal x86_64 [project root]/Carthage/Checkouts/Alamofire/Source/ResponseSerialization.swift
    CompileSwift normal x86_64 [project root]/Carthage/Checkouts/Alamofire/Source/Manager.swift
    CompileSwift normal x86_64 [project root]/Carthage/Checkouts/Alamofire/Source/Alamofire.swift
    CompileSwift normal x86_64 [project root]/Carthage/Checkouts/Alamofire/Source/Validation.swift
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler

(6 次失败)

4

1 回答 1

1
 Building scheme "Alamofire iOS" in Alamofire.xcworkspace

获取之前的版本写这个到迦太基

github "Alamofire/Alamofire" >= 4.2.0 

请参阅github 中的realese项目以获取您的 swift 版本的选择版本

您也可以在运行 carthage 示例时选择平台

carthage update --platform iOS
于 2017-01-23T12:16:22.570 回答