Problem building app in macOS (Cordova related)
I have a very strange problem with Cordova in macOS High Sierra. The problem is when I try to build the app I get the following error message:
app:spawn: Running “cordova build --release ios” +1ms
"Unexpected token I in JSON at position 0"
app:spawn: Command “cordova” failed with exit code: 1 +9ms
Is there any reason for this? When I build the Android version (in another computer) the build process works without problems.
I already have XCode installed and I have accepted de license agreement.
I had the same error. Im’ not 100% sure, but I think it has to do with plugins: I had one which had been removed from the config.xml file, but the folder still existed in src-cordova/plugins. Make sure this folder, the config file and src-cordova/package.json are all on the same page when it comes to plugins.