Error Code 65 when trying to emulate ios

Hello, trying to run “ios emulate ios” but I keep getting this error:

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/Dan/documents/websites/jm.ionic2/camperchat/platforms/ios/cordova/build-debug.xcconfig,-project,camperchat.xcodeproj,ARCHS=i386,-target,camperchat,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/Dan/documents/websites/jm.ionic2/camperchat/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/Dan/documents/websites/jm.ionic2/camperchat/platforms/ios/build/sharedpch

I am running cordova 6.2.0

got the build to succeed by uninstalling and reinstalling xcode even though I ran the update yesterday

try: ionic state reset

I’m glad that you got it working. I just wanted to post a link to a similar issue for others that are facing such problem and find this topic. The workaround which helped was:

ionic platform remove ios
ionic platform add ios