Error: Cannot read property 'replace' of undefined

Actually soon cordova-ios 4.5.0 will be released which should use the correct version with the fix…

This worked ! Thanks!

1 Like

I’ve tried this solution, upgrade to 4.5.0 and remove unnecessary plugin.

it fixes the Error which discussed in this topic. Thanks.

Running npm install ios-sim command from my project root worked for me. When I tried the commands as mentioned above within the platform directories, I would get errors.

Running npm uninstall ios-sim and then npm install ios-sim in the root directory fix the problem

This worked for me too @Ahmed12. Thanks!!

1 Like