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

So here is the “official” fix from someone Cordova team:

in your project folder root, do cd platforms/ios/cordova && npm install ios-sim

TypeError: Cannot read property 'replace' of undefined (lib.js:282) · Issue #210 · ios-control/ios-sim · GitHub

(Which also means: You can/should get rid of the global install via npm uninstall -g ios-sim)

17 Likes