apache / apache/cordova-cli

'cordova build ios' taking over 5 minutes to compile and displaying verbose info in terminal

Open
#608 10 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
967
Forks
344
Avg merge
8h 41m
Merged PRs (30d)
9

Description

# Bug Report
`cordova build ios` is displaying verbose info even though `--verbose` is not used. Its like its on by default for iOS.

## Problem
Something has to have changed or isn't working as expected. I just upgraded to Cordova 11 and my projects that used to take 30-45 to compile with `cordova build ios` are now taking 5 to 6 minutes. As well, I am seeing all the verbose info when I am not using the `--verbose` option which is making me think its specifically the `verbose` that is causing the slowness. It's like `--verbose` is on by default on iOS. Granted, I have always seen verbose info when using `cordova build ios` but its never bothered me as much because my app would usually compile in 30 seconds. But now i am seeing its thousands of useless terminal messages just soaking up buffer and slowing things down as each 5,000 character path call is being written to the terminal.

On my windows machine: `cordova build android` takes about 10 seconds AND only spits out about 60 lines of terminal messages. So something def keeps going the wrong direction with iOS.

### What is expected to happen?
Compile in 30 seconds and not show thousands of lines of terminal messages.

### What does actually happen?
Compiles in nearly 6 minutes and show thousands of lines of terminal messages.

## Information

### Command or Code
`cordova build ios`

### Environment, Platform, Device & version info
Mac: 3.6Ghz quad Core i3, 8Gb memory
MacOS: 13.2.1 Ventura
Xcode 14.2
Cordova@11
Cordova-ios@6.2.0

## Checklist

- [x ] I searched for existing GitHub issues
- [x ] I updated all Cordova tooling to most recent version
- [x ] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `cordova build ios` with the listed Cordova, cordova-ios, macOS, and Xcode versions, comparing output with and without `--verbose`. Trace the CLI's iOS build entry point and logging path; done means normal builds no longer emit thousands of verbose lines and return to the expected compilation time.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.