I am doing a clean then archive:
xcodebuild -workspace MyApp.xcworkspace \
-scheme MyScheme \
-archivePath /Library/......./outputfolder/MyApp.xcarchive \
clean archive
I get this error about 50% of the time.
The following build commands failed:
Write auxiliary files
Its reported twice in the apple developer forums (but not yet on StackOverflow as far as I am aware).
Has anyone found the cause or a workaround?
This issue was fixed with the release of XCode 5.1.1 The release notes had 2 vague mentions of 2 bug fixes on the 'Build System' which I guess fixes the issue.
The updates should happen automatically. If not go to the app store and install both the command line tools update and the latest Xcode.