ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

ionic wrapper does not honor native cordova flags passed to xcodebuild

Open rolinger opened this issue 2 years ago • 1 comments

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

rolinger avatar Feb 28 '23 16:02 rolinger

Sorry, submitted this as a bug, please reclassify as a feature.

rolinger avatar Feb 28 '23 16:02 rolinger