"Error: Cannot read property ‘replace’ of undefined" for ios-sim

ios-sim is part of Cordova, not Ionic directly. And obviously it is broken if you are getting errors :wink:
There is an issue here, but I am not sure if the solution is the correct one for you: TypeError: Cannot read property 'replace' of undefined (lib.js:282) · Issue #210 · ios-control/ios-sim · GitHub

What did you mean by that by the way? Nothing additional?