Cannot read property 'toLowerCase' of undefined [ERROR] An error occurred while running subprocess cordova.
See original GitHub issueBug Report
Running ionic cordova build ios
within a new, blank project does not work. This is a continuation of #642
Problem
When running ionic cordova build ios
the following error occurs:
Cannot read property 'toLowerCase' of undefined
[ERROR] An error occurred while running subprocess cordova.
What is expected to happen?
The build should run to completion.
What does actually happen?
The build does not run completion.
Information
- Create a new Ionic 4 project using the ‘blank’ template.
- Add the ios platform using
ionic cordova platform add ios
. - Upgrade
cordova-ios
to the latest version (5.0.1 at the time of this writing). - Run
ionic cordova build ios
. The same TypeError appears.
Command or Code
Environment, Platform, Device
Version information
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.6.2
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 4 other plugins)
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:17 (5 by maintainers)
Top Results From Across the Web
cordova build ios but error in 'Cannot read property ...
Steps to solve this error: Connect your iPhone device. Open Xcode and select your iPhone device. Run command in terminal: ionic cordova ......
Read more >iOS: Cannot read property 'toLowerCase' of undefined - ionic-v3
But now I'm getting this error: Reading build config file: Cannot read property 'toLowerCase' of undefined. With this solution:
Read more >[cordova] Cannot read property 'toLowerCase' of undefined
If you have this error “[cordova] Cannot read property 'toLowerCase' of undefined” when trying to run iOS, please run these commands:
Read more >Cannot read property 'toLowerCase' of undefined - Bugs
I am just checking out Wappler and tried one simple thing: ... A system check was performed successfully and then I get this...
Read more >Angular Ionic Build: Cannot Read Property 'Tolowercase' Of ...
If you have this error [cordova] Cannot read property 'toLowerCase' of undefined when trying to run iOS please run these commands: ionic. Hi...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brodybits
ionic cordova platform add ios@latest
worked in a new blank project and in the current project I’m working on (after removing the platform first). Thanks!I think that will not work on a Cordova project.
I highly recommend that you start with another “blank” project, with a limited number of plugins, and do
cordova platform add ios@latest
orionic cordova platform add ios@latest
.In case of continued problems, please give us a more exact set of commands that we have to do to install the Ionic CLI, create the project, add the plugins, and reproduce your issue. Most of us do not actively support use with Ionic.