1

我一直面临无法使用 Carthage 构建 Alamofire 的问题。

我的环境如下:

  • OSX 10.10.5
  • Xcode 6.4
    • 还已经安装了 7.0 和 7.1。
  • 迦太基 0.9.3
  • 尝试安装 Alamofire 1.3.1(最新的 Swift 1.2 版本)

我尝试了下面的命令然后发生错误。

$ echo 'github "Alamofire/Alamofire" "1.3.1"' > Cartfile ; carthage update --platform ios
*** Cloning Alamofire
*** Checking out Alamofire at "1.3.1"
*** xcodebuild output can be found in /var/folders/ch/jcgf09f15hl391jn849d5yr80000gn/T/carthage-xcodebuild.ZM1b0b.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
** BUILD FAILED **


The following build commands failed:
    Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A shell task failed with exit code 65:
** BUILD FAILED **


The following build commands failed:
    Ld /Users/username/Library/Developer/Xcode/DerivedData/Alamofire-fmnpbxqgrcncdhbtipavvywlxagy/Build/Intermediates/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Alamofire normal arm64
(1 failure)

然后我尝试使用 Xcode 构建。

打开Alamofire.xcworkspace并点击 Cmd+B 然后失败并出现以下错误:

Xcode 错误图片

我从未见过警告Unable to find swiftCore; please set SWIFT_LIBRARY_PATH (currentry '') to the folder containing swiftCore

我认为这个警告与这个问题有关,但我不知道如何解决这个问题......

有什么解决办法吗?

4

0 回答 0