I don’t think the SO answer can be relevant to OP’s situation, because OP is trying to run an android emulator, not an iOS one, so I would not think ios-sim would come into play.
Can everybody affected please post the following details:
I downloaded it from your link and then trashed the newest version. If I remember correct I had the issue until I trashed the newest version.
Edit: But I also did created a new project since I am now migrating to v2 and I also update my cli to v3. So I don’t know if my previous v1 app would work.
cordova run iOS --verbose
...
** BUILD SUCCEEDED **
No scripts found for hook "before_deploy".
Error: TypeError: Cannot read property 'replace' of undefined
at remove (/Users/BCH/mobilebusinessapp/platforms/ios/cordova/node_modules/ios-sim/src/lib.js:282:70)
at Array.forEach (native)
at Object.getdevicetypes (/Users/BCH/mobilebusinessapp/platforms/ios/cordova/node_modules/ios-sim/src/lib.js:292:22)
at Object.listEmulatorImages [as run] (/Users/BCH/mobilebusinessapp/platforms/ios/cordova/lib/list-emulator-images:34:29)
at deployToSim (/Users/BCH/mobilebusinessapp/platforms/ios/cordova/lib/run.js:146:50)
at /Users/BCH/mobilebusinessapp/platforms/ios/cordova/lib/run.js:88:20
at _fulfilled (/Users/BCH/mobilebusinessapp/platforms/ios/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/Users/BCH/mobilebusinessapp/platforms/ios/cordova/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/Users/BCH/mobilebusinessapp/platforms/ios/cordova/node_modules/q/q.js:796:13)
at /Users/BCH/mobilebusinessapp/platforms/ios/cordova/node_modules/q/q.js:604:44
Ok, here it is quite clear: Your [quote=“BradH, post:14, topic:93297”]
ios-sim : 3.1.1
[/quote]
version is ancient. Find out if it is installed locally or globally and then run npm install -g ios-sim or npm install ios-sim. (I suspect globally). Run ionic info to check again if the update worked.
I removed the ios-sim directory inside myApp/platforms/ios/cordova/node_modules and now it’s working. Now it uses the global installed one i guess. Thanks!