Monday, July 15, 2013

Command failed with status (65): [xcodebuild -project ios-sim.xcodeproj]

I'm writing a Sencha/PhoneGap app which has been a story by itself, but here's a problem that I ran into today and solved relatively quickly. I was in the process of install PhoneGap's ios-sim package with Homebrew. I ran into the following error after running brew install ios-sim:

The following build commands failed:
    Ld build/ normal i386
    Ld build/ normal x86_64
(2 failures)
rake aborted!
Command failed with status (65): [xcodebuild -project ios-sim.xcodeproj -con...]


Turns out that xcodebuild was pointing to XCode Developer Preview 2, which is not supported by ios-sim. Makes sense. So the solution is to change the path that xcodebuild points to. So I looked for where xcodebuild was pointing.

Jims-MacBook-Air:ios-sim jamesslien$ xcode-select -print-path

And changed the path using the switch command

sudo xcode-select -switch /Applications/

After that brew installed ios-sim and I'm on my way to packaging up the app for release on iPhone and Android.

Written with StackEdit.

No comments:

Post a Comment