Adding iOS platform error: Cannot read property 'indexOf' of null


#1

I first face this issue when my info were:

Cordova CLI: 6.0.0
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.3.0
Xcode version: Xcode 7.2 Build version 7C68

Upgrading node to 5.7.1 does not change the situation, so I’m a little bit confused now.

My system information right now:

Cordova CLI: 6.0.0
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.7.1
Xcode version: Xcode 7.2 Build version 7C68

Something useful that i’ve found is that the trouble, in my case, is related to the presence of the iOS platform. Removing it makes the android composition works just fine again.