Error when running ionic emulate ios


#1

When I run the ionic emulate ios command I receive the following error:

dyld: Library not loaded: @rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient Referenced from: /usr/local/bin/ios-sim Reason: image not found Cordova needs ios-sim version 1.7 or greater, you have version . Error: /Users/noveyg/Desktop/ionic/myApp/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:135: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)

Any help would be appreciated.


#2

Not sure why but after uninstalling ios-sim for the second time and then reinstalling it, it now works!!