Cannot read property 'toLowerCase' of undefined

I am just checking out Wappler and tried one simple thing:

  • Create a new project from the Mobile Template
  • Added iOS 4.5.5 from the Platform menu
  • Clicked ‘Run’

A system check was performed successfully and then I get this message:

Building your Cordova Project for ios ...
Cannot read property 'toLowerCase' of undefined
Error building your Cordova Project for ios!

If I open the project in XCode it builds just fine…

Any hint?

is your syntax correct ?

I didn’t even type 1 character.

I just used Wappler to download and build the demo-project

Try updating Cordova iOS to the latest version 5.1.1

We have update icons on the toolbar.

See also:
https://cordova.apache.org/blog/

1 Like

I tried that from within Wappler (the underlined arrow-up icon), but Wappler asked for a password - but none was accepted (see below).

I now updated the project from the terminal and now it compiles/works.

But - I immediately created a new project from the mobile template and Wappler again adds 4.5.4 and I need to do the same thing… Is that how it is supposed to work?

image

    Old ios removed successfully!
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
        Path: platforms/ios
        Package: io.cordova.hellocordova
        Name: HelloCordova
iOS project created with cordova-ios@4.5.5
Installing "cordova-plugin-whitelist" for ios
--save flag or autosave detected
Saving ios@~4.5.5 into config.xml file ...
ios updated successfully!

Updating Cordova to the latest...
Password:
Sorry, try again.
Password:

btw… I am on the latest 10.15.1 (19B88) with XCode Version 11.2.1 (11B500)

As the installation needs to change some system settings it asks for your Mac password.

So just enter that one

Well - I tried that more than once (even restarted Wappler)

I quickly re-booted my machine just to make sure - but same thing: Wappler doesn’t update Cordova iOS and keeps asking for password

Checking NodeJS installation and version...
v12.12.0
NodeJS is correctly installed.

Checking GIT installation and version...
git version 2.21.0 (Apple Git-122.2)
GIT is correctly installed.

Checking Cordova installation and version...
8.1.2 (cordova-lib@8.1.1)
Cordova is correctly installed.
Adding ios to your Cordova Site ...
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
        Path: platforms/ios
        Package: io.cordova.hellocordova
        Name: HelloCordova
iOS project created with cordova-ios@4.5.5
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving ios@~4.5.5 into config.xml file ...
ios added successfully!

Updating Cordova to the latest...
Password:
Updating Cordova to the latest...
Password: