Getting an error running a Cordova project to iOS?

This morning when testing an Ionic project, I got an error trying to emulate iOS. I tested it again in the Cordova CLI and got the same error:

simctl was not found.
Check that you have Xcode 6.x installed:

My first thought was that it was an XCode 7 issue, but I had run builds earlier in the week. On a whim though I fired up XCode and...

Bam. I had to OK a license agreement change. Because... reasons. So if you ever run into an issue like this before, open up XCode and see if you've got a prompt waiting for you. Apparently you can script your way around this too, but just running XCode was faster.

Archived Comments

Comment 1 by Simon Prickett posted on 10/23/2015 at 10:23 PM

You can achieve this through scripting if you want a xcode lights out environment (and/or have a CI environment). Something like this has worked for me in the past https://www.snip2code.com/S...

Comment 2 (In reply to #1) by Raymond Camden posted on 10/25/2015 at 6:49 PM

Cool - thanks for sharing that!