Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double dash prevents forwarding platform-specific options #1488

Open
3 tasks done
luxaritas opened this issue Sep 6, 2024 · 1 comment
Open
3 tasks done

Double dash prevents forwarding platform-specific options #1488

luxaritas opened this issue Sep 6, 2024 · 1 comment
Labels
Milestone

Comments

@luxaritas
Copy link

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

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@dpogue dpogue added this to the 8.0.0 milestone Sep 9, 2024
@dpogue
Copy link
Member

dpogue commented Sep 26, 2024

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

@breautek breautek added the bug label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants