apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 990 forks source link

Double dash prevents forwarding platform-specific options #1488

Open luxaritas opened 3 weeks ago

luxaritas commented 3 weeks ago

Bug Report

Problem

What is expected to happen?

npx cordova build ios --release --device -- --automaticProvisioning would pass -allowProvisioningUpdates to xcodebuild

What does actually happen?

xcodebuild is not passed -allowProvisioningUpdates

Information

Both the cordova-cli docs and cordova-ios docs specify you need to add an extra -- in order to provide platform-specific options. This is indeed the case for cordova-android. However for cordova-ios, adding the extra double dash appears to prevent the extra arguments from being processed.

It's possible that because I use npx something weird is happening here, but as far as I can tell, the behavior is inconsistent with cordova-android, so that shouldn't be the issue.

Command or Code

cordova build

Environment, Platform, Device

N/A

Version information

Node 20, cordova 12.0.0, cordova-ios 7.1.0

Checklist

dpogue commented 1 day ago

I've confirmed this, and confirmed that cordova-ios never actually handles the options.argv that are forwarded from the CLI.