I also tried ionic cordova build ios --buildFlag='-UseModernBuildSystem=0'
Setting binaryMode on/off in Xcode
Complete reinstall ionic/cordova ionic cordova plugin remove cordova-plugin-console is not necessary anymore
It has worked with all the plugins before, so I think that the plugins can’t be the problem.
The olution for me was open the .xcworkspace file insted of .xcodeproj located inside my ‘/platforms/ios’ folder.the solution for me was open the .xcworkspace file insted of .xcodeproj located inside my ‘/platforms/ios’ folder.
I also tried this, but there is no difference.
When I use cordova-ios 4.4.0 instead of 5.0.1 ( <engine name="ios" spec="^5.0.1" /> in config.xml ) the error changes to
Reading build config file:
Cannot read property 'toLowerCase' of undefined
After going back to 5.0.1 it stays on this error.
With the --prod flag I get
ionic-app-script task: "build"
[20:30:26] TypeError: Object prototype may only be an Object or null: undefined
TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf (<anonymous>)