Skip to content

Commit

Permalink
Merge pull request #5147 from cb1kenobi/timob-16045
Browse files Browse the repository at this point in the history
[TIMOB-16045] Bypass the check and requirement of dev certs and provisio...
  • Loading branch information
srahim committed Dec 18, 2013
2 parents 31d3ecb + 89e979c commit bf5dc05
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions iphone/cli/commands/_build.js
Expand Up @@ -706,6 +706,9 @@ iOSBuilder.prototype.config = function config(logger, config, cli) {
'target': {
abbr: 'T',
callback: function (value) {
// if we're building from Xcode, no need to check certs and provisioning profiles
if (cli.argv.xcode) return;

if (value != 'simulator') {
_t.assertIssue(logger, iosInfo.issues, 'IOS_NO_KEYCHAINS_FOUND');
_t.assertIssue(logger, iosInfo.issues, 'IOS_NO_WWDR_CERT_FOUND');
Expand Down Expand Up @@ -1349,10 +1352,13 @@ iOSBuilder.prototype.loginfo = function loginfo(next) {
this.logger.debug(__('Xcode installation: %s', this.xcodeEnv.path.cyan));
this.logger.debug(__('iOS WWDR certificate: %s', this.iosInfo.certs.wwdr ? __('installed').cyan : __('not found').cyan));
this.logger.debug(__('Building for the following architectures: %s', this.architectures.cyan));
if (this.target == 'device') {
this.logger.info(__('iOS Development Certificate: %s', this.certDeveloperName.cyan));
} else if (/^dist-appstore|dist\-adhoc$/.test(this.target)) {
this.logger.info(__('iOS Distribution Certificate: %s', this.certDistributionName.cyan));

if (!this.cli.argv.xcode) {
if (this.target == 'device') {
this.logger.info(__('iOS Development Certificate: %s', this.certDeveloperName.cyan));
} else if (/^dist-appstore|dist\-adhoc$/.test(this.target)) {
this.logger.info(__('iOS Distribution Certificate: %s', this.certDistributionName.cyan));
}
}

// validate the min-ios-ver from the tiapp.xml
Expand Down

0 comments on commit bf5dc05

Please sign in to comment.