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

Add the option to make a release iOS build #3

Open
vincent-vieira opened this issue Sep 15, 2015 · 1 comment
Open

Add the option to make a release iOS build #3

vincent-vieira opened this issue Sep 15, 2015 · 1 comment

Comments

@vincent-vieira
Copy link

Hello there, me again.

As the gulp-cordova-build-android plugin does, I think we should add the possibility to make a release build when compiling an iOS app.

A very trivial implementation would be adding an option object instead of a single boolean to the ios() function, like this :

var gulp = require('gulp'),
    ios = require('gulp-cordova-build-ios');

gulp.task('rebuild', function() {
    return gulp.src('.cordova')
        .pipe(ios({
                rebasePlatform: true,
                release: true
        }));
});

And handling it like this in the index.js file :

module.exports = function(rm) {
     //.... Options values check and default settings
     var options = options.release ? ['--release'] : [];
     //.... Begin of the promise
     .then(function() {
            // Build the platform
            return cordova.build({platforms: ['ios'], options: options});
     })//... Rest of the promise

Releasing an iOS app means also having the developer certificate and provisoning store configured in XCode. We may (or not) leave this part to the developer's responsability.

Tell me what you think of this idea, and thank you !

@SamVerschueren
Copy link
Owner

Hi @vincent-vieira

Thanks for the input! We already started discussing some things in issue #1. This is definitely something we should add because it works for Android and BlackBerry 10 already. But I am not really an iOS developer so all the help on this would be nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants