Skip to content

Double dash prevents forwarding platform-specific options #1488

Closed
@luxaritas

Description

@luxaritas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions