ionic-team / ionic-team/ionic-cli

ionic wrapper does not honor native cordova flags passed to xcodebuild

Ouverte
#4,956 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
triage
Langage dominant
TypeScript
Étoiles
2k
Forks
682
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**Description:**
Using cordova native, you can send flags to the compiler:

IE: `cordova build ios --buildFlag="-quiet"` - or any flag that xcodebuild can take.

However, with the ionic wrapper, none of those native flags are permitted, greatly reducing interactive control with `xcodebuild`.

This is important for a variety of reasons, one of which is using the `-quiet` flag to cut down on the 10s of thousands of terminal output lines that is just useless noise. `xcodebuild` looks like it defaults to `--verbose`, so you have to manually use `-quiet' to turn it off and only get the relevant warnings/errors (which is still over 1,000s lines of terminal output for iOS).

On Android, its like 60 lines of terminal output.

**Steps to Reproduce:**
`ionic cordova build ios --buildFlag="-quiet"` **vs** ` cordova build ios --buildFlag="-quiet"`

**Output:**

**My `ionic info`:**
Ionic:

Ionic CLI : 6.20.8 (/Users/rpo/.nvm/versions/node/v14.18.1/lib/node_modules/@ionic/cli)
Ionic Framework : ionic1 1.3.4
@ionic/v1-toolkit : 3.2.15

Cordova:

Cordova CLI : 11.1.0
Cordova Platforms : ios 6.2.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 27 other plugins)

Utility:

cordova-res : 0.15.4
native-run : 1.7.1

System:

ios-deploy : 1.12.1
ios-sim : 8.0.2
NodeJS : v14.18.1 (/Users/rpo/.nvm/versions/node/v14.18.1/bin/node)
npm : 6.14.15
OS : macOS Unknown
Xcode : Xcode 14.2 Build version 14C18
```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.