I’m on OS X Yosemite 10.10.3 with XCode 5.0 (5A1413)
I’m starting with a clean install of node, cordova, and ionic. I ran the commands in the getting started guild:
$ sudo npm install -g cordova
$ sudo npm install -g ionic
$ ionic start todo blank
$ ionic platform add ios
$ ionic build ios
And everything seemed to go as planned until the last build line. I get the following error:
** BUILD FAILED **
The following build commands failed:
CompileXIB todo/Classes/MainViewController.xib
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/my_user_name/todo/platforms/ios/cordova/build-debug.xcconfig,-project,todo.xcodeproj,ARCHS=i386,-target,todo,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/my_user_name/todo/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/my_user_name/todo/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/my_user_name/todo/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/my_user_name/todo/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
I’ve searched the forums for this particular failed build but I didn’t find any solutions. Any ideas how to resolve this? I’ve tried uninstalling the platform and re-installing.