Skip to content

Commit 027087a

Browse files
authored
Merge pull request #73 from appcelerator/DAEMON-209
[DAEMON-209] Fixed bug where extract teams from provisioning profiles…
2 parents c61c365 + d1eda75 commit 027087a

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v2.0.6 (Dec 14, 2017)
2+
3+
- Fixed bug where extract teams from provisioning profiles would fail if any provisioning profiles
4+
didn't have any associated teams [DAEMON-209].
5+
16
# v2.0.5 (Dec 12, 2017)
27

38
- Updated to [email protected] which added support for Node.js 9.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ioslib",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"publishConfig": {
55
"tag": "next"
66
},

src/teams.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ export function buildTeamsFromProvisioningProfiles(profiles) {
3131
for (const type of Object.keys(profiles)) {
3232
if (Array.isArray(profiles[type])) {
3333
for (const profile of profiles[type]) {
34-
for (const id of profile.teamIds) {
35-
if (id) {
36-
teams[id] = id;
34+
if (Array.isArray(profile.teamIds)) {
35+
for (const id of profile.teamIds) {
36+
if (id) {
37+
teams[id] = id;
38+
}
3739
}
3840
}
3941
if (profile.teamId) {

0 commit comments

Comments
 (0)