ionic-team / ionic-team/ionic-cli

ionic wrapper does not honor native cordova flags passed to xcodebuild

Aperta
#4,956 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
triage
Lingua principale
TypeScript
Stelle
2k
Fork
682
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.