Alamofire and SwiftyJSON with Carthage in Xcode6.3

I would really like to use Carthage to install Alamofire and SwiftJSON, but I can't get it to work. It fails every time to build.

Here is my Cartfile (specify the correct branches for Xcode 6.3):

github "Alamofire/Alamofire" "xcode-6.3"
github "SwiftyJSON/SwiftyJSON" "xcode6.3"

Alamofire cannot build with these errors:

error: Error Domain=NSPOSIXErrorDomain Code=2 "Non-zero exit code 127 returned from shell command: /ur/bin/gcc-4.2 -v -E -dM -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -x c -c /dev/null 2>&1" UserInfo=0x7fbfb9e4d5d0 {NSLocalizedDescription=Non-zero exit code 127 returned from shell command: /ur/bin/gcc-4.2 -v -E -dM -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -x c -c /dev/null 2>&1, NSLocalizedFailureReason=No such file or directory}
2015-02-18 23:15:51.859 xcodebuild[53900:6388252] Warning:  Couldn't discover the 'gcc-4.2' compiler built-in search paths and preprocessor definitions for language dialect 'c'.
Compiler: /ur/bin/gcc-4.2
Reason:   /ur/bin/gcc-4.2 -v -E -dM -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -x c -c /dev/null 2>&1
2015-02-18 23:15:51.865 xcodebuild[53900:6388253] error: Error Domain=NSPOSIXErrorDomain Code=2 "Non-zero exit code 127 returned from shell command: /ur/bin/gcc-4.2 -v -E -dM -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -x c -c /dev/null 2>&1" UserInfo=0x7fbfbbb474d0 {NSLocalizedDescription=Non-zero exit code 127 returned from shell command: /ur/bin/gcc-4.2 -v -E -dM -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -x c -c /dev/null 2>&1, NSLocalizedFailureReason=No such file or directory}
2015-02-18 23:15:51.865 xcodebuild[53900:6388253] Warning:  Couldn't discover the 'gcc-4.2' compiler built-in search paths and preprocessor definitions for language dialect 'c'.
Compiler: /ur/bin/gcc-4.2
Reason:   /ur/bin/gcc-4.2 -v -E -dM -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -x c -c /dev/null 2>&1
2015-02-18 23:15:52.448 xcodebuild[53900:6388249]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-6269/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77
Details:  Failed to load dependencies output contents from ``/Users/devonboyer/Library/Developer/Xcode/DerivedData/Alamofire-gpmlmgkqhnaqwsdibrprtyuyoqpu/Build/Intermediates/Alamofire.build/Release-iphonesimulator/Alamofire iOS.build/Objects-normal/x86_64/Alamofire.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file "Alamofire.d" couldn’t be opened because there is no such file." UserInfo=0x7fbfb9e774f0 {NSFilePath=/Users/devonboyer/Library/Developer/Xcode/DerivedData/Alamofire-gpmlmgkqhnaqwsdibrprtyuyoqpu/Build/Intermediates/Alamofire.build/Release-iphonesimulator/Alamofire iOS.build/Objects-normal/x86_64/Alamofire.d, NSUnderlyingError=0x7fbfb9e71f00 "The operation couldn’t be completed. No such file or directory"}. User info: {
    NSFilePath = "/Users/devonboyer/Library/Developer/Xcode/DerivedData/Alamofire-gpmlmgkqhnaqwsdibrprtyuyoqpu/Build/Intermediates/Alamofire.build/Release-iphonesimulator/Alamofire iOS.build/Objects-normal/x86_64/Alamofire.d";
    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
Thread:   <NSThread: 0x7fbfb9e1a3a0>{number = 7, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **


The following build commands failed:
    CompileSwift normal x86_64 /Users/devonboyer/Desktop/Reach/Reach/Carthage/Checkouts/Alamofire/Source/Alamofire.swift
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

SwiftyJSON cannot build with this error:

Scheme SwiftyJSONOSX is not currently configured for the build action.

I would really like to find out why this does not work, because I believe that Carthage can be really amazing. Please note that I did nothing except follow the instructions in the Cartage git repository. It just started the update, and it happened. Any ideas?

The xcode selection path correctly points to Xcode beta

/Applications/Xcode-Beta.app/Contents/Developer

+4
1

, SwiftyJSON. ( , )

1.) SwiftyJSON github

2.) xcode6.3

3.) SwiftyJSOn Xcode 6.3 ( )

4.) ( )

5.) SwiftyJSON " " Xcode 6.3

enter image description here

6.)

7.) DerivedData , SwiftyJSON.framework

8.) SwiftyJSON.framework $(SRC_ROOT)/Carthage/Build/iOS/

9.) SwiftyJSON

0

All Articles