Skip to content

ionic cordova build - build.json error #2338

@kesozjura

Description

@kesozjura

Short description of the problem:

Running:
ionic cordova build ios --prod --release --device --buildConfig build.json

ionic web app is complied successfully, but cordova build is failing with error:
Error: The platform "build.json" does not appear to have been added to this project.

because ionic cli generates wrong cordova command:
cordova build ios build.json --release --device --build-config build.json

There is build.json inserted after cordova build ios.

What behavior are you expecting?

Generated command should look like this:
cordova build ios --release --device --build-config build.json

I am using cli v3.2.0 and cordova plugin v1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions