Robert
Robert

Reputation: 38223

xcodebuild fails on the 'write auxiliary files' step

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?

Upvotes: 7

Views: 2899

Answers (2)

Robert
Robert

Reputation: 38223

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.

enter image description here

Upvotes: 5

waltflanagan
waltflanagan

Reputation: 1512

I was seeing this error with a build that was using cocoapods.

Updating to the latest (0.31.1 as of writing) fixed the issue for me.

This can be done with: (sudo) gem install cocoapods

Upvotes: 1

Related Questions