question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'toLowerCase' of undefined [ERROR] An error occurred while running subprocess cordova.

See original GitHub issue

Bug 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

  1. Create a new Ionic 4 project using the ‘blank’ template.
  2. Add the ios platform using ionic cordova platform add ios.
  3. Upgrade cordova-ios to the latest version (5.0.1 at the time of this writing).
  4. 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

34reactions
daviddicksoncommented, Jul 15, 2019

@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!

32reactions
brodybitscommented, Jul 15, 2019

I ran npm install cordova-ios@latest […]

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 or ionic 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found