`xcodebuild` fails to build with default scheme for framework target

Originator:rix.rob
Number:rdar://19101896 Date Originated:01-Dec-2014 11:51 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.1.1 (6A2006)
Classification:Serious Bug Reproducible:Always
 
Summary:
When attempting to build a framework target with Xcode’s default scheme (which builds the tests), xcodebuild is failing, and requesting that I file this radar:

Details:  Failed to load dependencies output contents from ``/Users/rob/Library/Developer/Xcode/DerivedData/Either-gkclfdotewehumboutptpufldxma/Build/Intermediates/Either.build/Release/EitherTests.build/Objects-normal/x86_64/EitherTests.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “EitherTests.d” couldn’t be opened because there is no such file." UserInfo=0x7fc0d813c7e0 {NSFilePath=/Users/rob/Library/Developer/Xcode/DerivedData/Either-gkclfdotewehumboutptpufldxma/Build/Intermediates/Either.build/Release/EitherTests.build/Objects-normal/x86_64/EitherTests.d, NSUnderlyingError=0x7fc0d8138d90 "The operation couldn’t be completed. No such file or directory"}. User info: {
    NSFilePath = "/Users/rob/Library/Developer/Xcode/DerivedData/Either-gkclfdotewehumboutptpufldxma/Build/Intermediates/Either.build/Release/EitherTests.build/Objects-normal/x86_64/EitherTests.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: 0x7fc0d813c550>{number = 10, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.


Steps to Reproduce:
1. Download this tag of Either: https://github.com/robrix/Either/releases/tag/1.0.1
2. Build it with xcodebuild:

/usr/bin/xcrun xcodebuild -workspace /Users/rob/Desktop/foo/Carthage.checkout/Either/Either.xcworkspace -scheme Either -configuration Release -sdk macosx build


Expected Results:
I expected this to build.


Actual Results:
It failed with the error above.


Regression:
This doesn’t happen if you change the scheme to not build the tests for analyzing and running.


Notes:
Full xcodebuild output attached.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!