Version should contain only numbers and dots

When trying to use emulation or building. This error started happening yesterday and I have no idea why. This is the verbose output, everything seems to be going smoothly and then it just stops. I can’t tell what’s causing it.

These are the commands I’m using, both result in the same error below:

ionic cordova emulate ios -l -c -s – --buildFlag="-UseModernBuildSystem=0"
ionic cordova build ios – --buildFlag="-UseModernBuildSystem=0" --prod --release

[app-scripts] Fri, 18 Oct 2019 16:05:37 GMT snapdragon:parser initializing /Users/patrickchoi/Dropbox/Ionic/carys_doc/node_modules/snapdragon/lib/parser.js
[app-scripts] Fri, 18 Oct 2019 16:05:37 GMT snapdragon:compiler initializing /Users/patrickchoi/Dropbox/Ionic/carys_doc/node_modules/snapdragon/lib/compiler.js
[app-scripts] Fri, 18 Oct 2019 16:05:37 GMT snapdragon:parser initializing /Users/patrickchoi/Dropbox/Ionic/carys_doc/node_modules/snapdragon/lib/parser.js
[app-scripts] Fri, 18 Oct 2019 16:05:37 GMT snapdragon:compiler initializing /Users/patrickchoi/Dropbox/Ionic/carys_doc/node_modules/snapdragon/lib/compiler.js
[app-scripts] Fri, 18 Oct 2019 16:05:37 GMT snapdragon:parser initializing /Users/patrickchoi/Dropbox/Ionic/carys_doc/node_modules/snapdragon/lib/parser.js
[app-scripts] [00:05:37] watch ready in 17.34 s
ionic:lib:serve awaiting TCP connection to localhost:8100 +21s

[INFO] Development server running!

   Local: http://localhost:8100
   
   Use Ctrl+C to quit this process

ionic:lib:events No process.send, not emitting event serve:ready +0ms
ionic:lib:serve serve details: { custom: false,
ionic:lib:serve protocol: ‘http’,
ionic:lib:serve localAddress: ‘localhost’,
ionic:lib:serve externalAddress: ‘localhost’,
ionic:lib:serve externalNetworkInterfaces: ,
ionic:lib:serve port: 8100,
ionic:lib:serve externallyAccessible: false } +11ms

cordova build ios --device --buildFlag=-UseModernBuildSystem=0 --verbose
[cordova] CordovaError: Promise rejected with non-error: ‘Version should contain only numbers and dots’
[cordova] at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
[cordova] at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.

    cordova build ios --device --buildFlag=-UseModernBuildSystem=0 --verbose
    exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more
    information.

ionic:utils-process onBeforeExit handler: ‘process.exit’ received +0ms
ionic:utils-process onBeforeExit handler: running 4 functions +0ms
ionic:lib:hooks Looking for ionic:serve:after npm script. +25s
ionic:utils-process processExit: exiting (exit code: 1) +108ms

1 Like

This just started today. I’m trying to track it down. What plugins do you have?

Plugin list:

cordova-plugin-device 2.0.2 “Device”

cordova-plugin-firebase 2.0.5 “Google Firebase Plugin”

cordova-plugin-ionic-webview 4.0.1 “cordova-plugin-ionic-webview”

cordova-plugin-splashscreen 5.0.2 “Splashscreen”

cordova-plugin-statusbar 2.4.2 “StatusBar”

cordova-plugin-whitelist 1.3.3 “Whitelist”

mx.ferreyra.callnumber 0.0.2 “Cordova Call Number Plugin”

Still struggling with this. I noticed that if I use cordova CLI command omitting ionic, it builds, and I can even use emulate but I have no live reload or console output.

Seems it has to do with Ionic.

Turns out it was ios-deploy, as I was having trouble running on a connected device earlier and I installed a beta using npm, but there was also a version in /usr installed via brew.

Uninstalled:

npm uninstall ios-deploy (inside project directory)
brew uninstall ios-deploy

Then reinstalled latest stable (not beta) using:

brew install ios-deploy

Opened a new terminal window, ran “ionic info” and saw the stable version installed.

Now all working again.

–verbose did not give any helpful information that pointed at ios-deploy, took a lot of guesswork and sheer luck to figure this one out.

2 Likes

I concur with your solution!