xcodebuild fails to "load dependencies output contents"
xcodebuild fails to "load dependencies output contents"
- Subject: xcodebuild fails to "load dependencies output contents"
- From: Jerry Krinock <email@hidden>
- Date: Mon, 10 Mar 2014 08:42:17 -0700
I use xcodebuild for Release builds of my non-Mac-App-Store product. Suddenly it is failing to compile two source files, and scrolling up in the output I see this is apparently caused by “Failed to load dependencies output contents”. Here is one of them:
*** <transcript snippet>
2014-03-10 07:43:23.987 xcodebuild[3872:30b] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/jk/Dev/Projects/BkmkMgrs/build/BkmkMgrs.build/Release/Bkmxwork.build/Objects-normal/x86_64/BkmxBasis.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “BkmxBasis.d” couldn’t be opened because there is no such file." UserInfo=0x7fa445375b50 {NSFilePath=/Users/jk/Dev/Projects/BkmkMgrs/build/BkmkMgrs.build/Release/Bkmxwork.build/Objects-normal/x86_64/BkmxBasis.d, NSUnderlyingError=0x7fa4453c8580 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/jk/Dev/Projects/BkmkMgrs/build/BkmkMgrs.build/Release/Bkmxwork.build/Objects-normal/x86_64/BkmxBasis.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7fa4453aefb0>{name = (null), num = 7}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
*** </transcript snippet>
Indeed that BkmxBasis.d file is not there. Its parent directory includes intermediate build files for about 10 source code files in the project. For 8 of the source code files, there is a trio of files, “.d”, “.dia” and “.o”. But for the two source code files that failed, there is only the “.dia”; indeed the “.d” is missing and of course the “.o” is missing. (The project has over 500 source files. The 10 source files referred to in here all begin with “B”. I guess that maybe it skipped “A” for some reason, then quit trying after these two failed.)
The project still builds fine in Xcode, either Debug or Archive.
Searching the internet shows one other team with this problem, in December…
https://github.com/jverkoey/iOS-Framework/issues/73
It looks like they think it is a bug in xcodebuild and worked around it by invoking xcodebuild with a (workspace,scheme) instead of a (project,target). But since this to ship, and a big project including many components, I would need to create a some kind of “Release” scheme, and then test the product for a week, since I’ve never done it that way. Also, The last time I used xcodebuild for this Release, two weeks ago, it worked fine. App Store app does not indicate any Xcode updates since then; I have Xcode 5.0.2.
I’ve tried the following. None had any effect.
• Clean the project
• Remove only that intermediate build directory
• Restart the Mac
• Update Mac OS X to the latest developer preview
Any clues would be appreciated.
Thanks,
Jerry Krinock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden