Skip to content

Commit

Permalink
[TIMOB-25318] Fixed bug where sim builds were blowing up when incorre…
Browse files Browse the repository at this point in the history
…ctly trying to access the provisioning profile. (tidev#9474)
  • Loading branch information
cb1kenobi authored and hansemannn committed Sep 23, 2017
1 parent d6079e5 commit d0cabbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,7 @@ iOSBuilder.prototype.validate = function validate(logger, config, cli) {

function validateTeamId() {
this.teamId = this.tiapp.ios['team-id'];
if (!this.teamId) {
if (!this.teamId && this.provisioningProfile) {
if (this.provisioningProfile.team.length === 1) {
// only one team, so choose this over the appPrefix
this.teamId = this.provisioningProfile.team[0];
Expand Down
2 changes: 1 addition & 1 deletion iphone/cli/hooks/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ exports.init = function (logger, config, cli) {
exportsOptions.method = 'enterprise';
}

if (builder.teamId || pp.team || pp.appPrefix) {
if (builder.teamId || (pp && (pp.team || pp.appPrefix))) {
// NOTE: if there isn't an explicit <team-id> in the tiapp.xml and there is no
// teams or more than 1 team in the provisioning profile, then we use the appPrefix
// which should be the team id, but can differ and since we don't check it, this
Expand Down

0 comments on commit d0cabbd

Please sign in to comment.