openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
457 stars 129 forks source link

Single command to create ipa? #351

Closed adil-hussain-84 closed 7 years ago

adil-hussain-84 commented 7 years ago

I find I have to run the gradle archive command followed by the gradle package command in order to build an ipa file (or gradle archive package). If I run the gradle package command by itself I get an Archive does not exist error. Is this correct behaviour or should the gradle package command work by itself?

renep commented 7 years ago

That is intentional, because you can have an xcarchive already from an previous build that you want to code sign with the package task. So you have to run gradle archive package, but you can also define a custom task in your build file.