Push from Scratch instructions result in failed build for iOS [solved]


Hey all, I followed the instructions on Push from Scratch, however, when I run ionic emulate ios or ionic build ios or ionic run ios, my build fails with the following error:

The following build commands failed:
	Ld build/emulator/taggit.app/taggit normal i386
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/stewart/Code/taggit/platforms/ios/cordova/build-debug.xcconfig,-project,taggit.xcodeproj,ARCHS=i386,-target,taggit,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/stewart/Code/taggit/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/stewart/Code/taggit/platforms/ios/build/sharedpch
Error: /Users/stewart/Code/taggit/platforms/ios/cordova/run: Command failed with exit code 2

I suspect it might be a problem with one of the Cordova plugins. Anyway, any suggestions for resolving this issue would be greatly appreciated because I cannot move forward testing Ionic Push on the simulator or on device.


Learned that Xcode 7 is required for phonegap-plugin-push. The emulator launches successfully after I upgraded.

Opened an issue for this: https://github.com/phonegap/phonegap-plugin-push/issues/570


Thanks for the solution. I have xcode 7, but still got the same error when build ios.


Hey @abitalk, I’m sorry to hear that :confused:

It seems you’re not the only one. Click through to the Github issue I posted and I would comment saying you’re having the same problem, as well as including the error code from your console and system/plugin information so the repo maintainers can help you troubleshoot: https://github.com/phonegap/phonegap-plugin-push/issues/570 and