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/ios-sim.build/Release/ios-sim.build/Objects-normal/i386/ios-sim normal i386 Ld build/ios-sim.build/Release/ios-sim.build/Objects-normal/x86_64/ios-sim 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 /Applications/Xcode5-DP2.app/Contents/Developer
And changed the path using the switch command
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
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.