使用Carthage构建Alamofire 1.3.1失败

时间:2015-11-09 02:14:52

标签: xcode swift alamofire yosemite carthage

我一直面临着一个未能使用迦太基建立Alamofire的问题。

我的环境如下:

  • OSX 10.10.5
  • Xcode 6.4
    • 此外已安装7.0和7.1。
  • Carthage 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 error image

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

我认为这个警告涉及到这个问题,但我不知道如何解决这个问题......

有没有解决方案?

0 个答案:

没有答案