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

ionic cordova build - build.json error

Open kesozjura opened this issue 9 years ago • 3 comments

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

kesozjura avatar May 24 '17 07:05 kesozjura

I have the same issue. Ionic cli v3.2.0

I think for generated cordova command --build-config argument must be --buildConfig

aemr3 avatar May 24 '17 14:05 aemr3

I confirm this issue as well.

To help you fix this, it appears on 3.2.0, 3.1.2, but it works on 3.1.1.

theomathieubhvr avatar May 24 '17 17:05 theomathieubhvr

Thanks all, we're automatically parsing these options and it's kind of a mess. I apologize. It should be fixed in the next release.

imhoffd avatar May 24 '17 19:05 imhoffd