# Error when launching IOS emulator

**URL:** <https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557>\
**Category:** ionic-v1\
**Created:** [July 8, 2014, 1:28pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557 "2014-07-08T13:28:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avril](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avril](https://forum.ionicframework.com/u/Avril)\
**Post date:** [July 8, 2014, 1:28pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/1 "2014-07-08T13:28:54Z")

</div>

Hi,

I’m getting this error when launching IOS emulator:

_Emulating app on platform ios  
Running command: /Users/myself/Sites/tests/ionic/todo/platforms/ios/cordova/run --emulator  
Cordova needs ios-sim version 1.7 or greater, you have version .  
Error: /Users/myself/Sites/tests/ionic/todo/platforms/ios/cordova/run: Command failed with exit code 1  
at ChildProcess.whenDone (/usr/local/lib/node\_modules/cordova/node\_modules/cordova-lib/src/cordova/superspawn.js:131:23)  
at ChildProcess.EventEmitter.emit (events.js:98:17)  
at maybeClose (child\_process.js:743:16)  
at Process.ChildProcess.\_handle.onexit (child\_process.js:810:5)  
ERROR: Unable to emulate app on platform ios. Please see console for more info.  
Exiting._

ios-sim is installed and I have version 1.9 running. So not sure why I’m getting this error.  
If anyone can help me out here?

thanks!

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 8, 2014, 6:36pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/2 "2014-07-08T18:36:23Z")

</div>

Does the emulator event start up?  
How did you install ios-sim? Did you run `sudo npm install -g ios-sim`?

---

<div class="post-metadata">

**Author:** ![Avril](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avril](https://forum.ionicframework.com/u/Avril)\
**Post date:** [July 8, 2014, 6:55pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/3 "2014-07-08T18:55:36Z")

</div>

The emulator doesn’t start up.  
Yep, did the installation `sudo npm install -g ios-sim`

---

<div class="post-metadata">

**Author:** ![fisch](https://avatars.discourse-cdn.com/v4/letter/f/77aa72/32.png) [@fisch](https://forum.ionicframework.com/u/fisch)\
**Post date:** [July 8, 2014, 7:05pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/4 "2014-07-08T19:05:22Z")

</div>

This line:

```auto
Cordova needs ios-sim version 1.7 or greater, you have version .

```

seems to imply that you don’t have the correct version of `ios-sim`. What does running `ios-sim --version` print out?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 8, 2014, 8:20pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/5 "2014-07-08T20:20:46Z")

</div>

OP already stated this

> [@Avril](#):
>
> ios-sim is installed and I have version 1.9 running.

Do you have xcodes Command line tools installed?

---

<div class="post-metadata">

**Author:** ![Avril](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avril](https://forum.ionicframework.com/u/Avril)\
**Post date:** [July 8, 2014, 8:32pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/6 "2014-07-08T20:32:35Z")

</div>

This is strange, when I run ios-sim --version I get this `Killed 9`

---

<div class="post-metadata">

**Author:** ![Avril](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avril](https://forum.ionicframework.com/u/Avril)\
**Post date:** [July 8, 2014, 8:32pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/7 "2014-07-08T20:32:57Z")

</div>

Yep, XCode Command Line installed

---

<div class="post-metadata">

**Author:** ![fisch](https://avatars.discourse-cdn.com/v4/letter/f/77aa72/32.png) [@fisch](https://forum.ionicframework.com/u/fisch)\
**Post date:** [July 8, 2014, 8:38pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/8 "2014-07-08T20:38:36Z")

</div>

It appears that something is forcefully killing your ios simulator. Do you have any related / auxillary programs running in the background like a unit test process or some custom build process that could be causing this?

---

<div class="post-metadata">

**Author:** ![Avril](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avril](https://forum.ionicframework.com/u/Avril)\
**Post date:** [July 9, 2014, 6:26am UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/9 "2014-07-09T06:26:43Z")

</div>

Very good question, the only thing I can come up is a watch task for my SASS files.  
I could reinstall OS X Command Line Tools but it seems to be unavailable from the update server.

I’m running OS X Mavericks, maybe there’s something in this version that’s blocking the simulator?

---

<div class="post-metadata">

**Author:** ![Avril](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avril](https://forum.ionicframework.com/u/Avril)\
**Post date:** [July 9, 2014, 12:03pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/10 "2014-07-09T12:03:09Z")

</div>

Hmm strange, now it seems to work. I created a new blank project with some custom CSS and HTML, added ios platform =\> build =\> emulate and it seems to be working.

Maybe there was a small bug when creating my other project?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 9, 2014, 5:47pm UTC](https://forum.ionicframework.com/t/error-when-launching-ios-emulator/6557/11 "2014-07-09T17:47:58Z")

</div>

Hmm, possibly. Cordova’s commands can be problematic sometimes, especially if you update the project to a new version (say 3.4 to 3.5).

Glad to hear that it’s all resolved now though!
