{ "id": "120850", "key": "TIMOB-15403", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-19T01:40:26.000+0000", "created": "2013-10-07T08:25:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.2.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-08T22:48:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I cannot build an adhoc file with the new CLI. Although there occur no errors no IPA file is created. If I don't add the --build-only flag the simulator opens.\r\n\r\n\r\nIn Studio the ad hoc provisioning profile cannot be selected it says that it is a development instead of adhoc profile. I cannot select the profile when I'm in the Distribute adhoc screen.", "attachment": [], "flagged": false, "summary": "iOS: Not possible to build adhoc IPA with CLI 3.2.0", "creator": { "name": "flobby", "key": "flobby", "displayName": "florian bergmann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "flobby", "key": "flobby", "displayName": "florian bergmann", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium CLI 3.2.0\r\nTitanium Studio 3.2.0.201309142404", "comment": { "comments": [ { "id": "273982", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "The problem is in the new detect.js that is in the sdk itself (not in the Ti CLI)\n{code}\n/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20130927153242/iphone/cli/lib/detect.js\n{code}\n\nThe detection of the adhoc type for the profile is wrong, the only difference between a development and an adhoc profile is the *get-task-allow* entitlement.\n\nSo I changed the detection part from\n{code}\nif (!p.ProvisionedDevices || !p.ProvisionedDevices.length) {\n\tdest = 'distribution';\n} else if (new Buffer(p.DeveloperCertificates[0], 'base64').toString().indexOf('Distribution:') != -1) {\n\tdest = 'adhoc';\n}\n{code}\n\nto\n\n{code}\nif (!p.ProvisionedDevices || !p.ProvisionedDevices.length) {\n\tdest = 'distribution';\n} else if (!entitlements['get-task-allow']) {\n\tdest = 'adhoc';\n}\n{code}\n\nand it seems to work fine at least for 3.2.0.v20130927153242\n\n", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-07T09:47:22.000+0000", "updated": "2013-10-07T09:47:22.000+0000" }, { "id": "274034", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~rborn] Yeah, I broke master a week or so ago. :( I've fixed it and hope to have the fix merged in the next day or so. Thank you for your patience.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-10-07T17:03:17.000+0000", "updated": "2013-10-07T17:03:17.000+0000" }, { "id": "274038", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-07T17:26:47.000+0000", "updated": "2013-10-07T17:26:47.000+0000" }, { "id": "274039", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~rborn] Yeah, that is also fixed, but pending PR. I have moved TC-3104 to timob.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-10-07T17:31:50.000+0000", "updated": "2013-10-07T17:31:50.000+0000" }, { "id": "274042", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Cool, thank you.", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-07T17:38:31.000+0000", "updated": "2013-10-07T17:38:31.000+0000" }, { "id": "274052", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~cbarber] sorry to be a pita, but it seems that CLI 3.2.0 fully builds everytime I run it.\r\n\r\n{code}\r\ntitanium build -p ios\r\n{code}\r\n\r\nIs this fixed too in the PR or do I have to open a new ticket?\r\nThnx,", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-07T19:02:12.000+0000", "updated": "2013-10-07T19:02:12.000+0000" }, { "id": "274053", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~rborn] The problem is with device and distribution builds. Simulator builds should be fine.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-10-07T19:04:05.000+0000", "updated": "2013-10-07T19:04:05.000+0000" }, { "id": "274056", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Nope, it rebuilds everything each time on simulator too.", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-07T19:08:27.000+0000", "updated": "2013-10-07T19:08:27.000+0000" }, { "id": "275834", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed as a part of https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:40:26.000+0000", "updated": "2013-10-19T01:40:26.000+0000" }, { "id": "278818", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified Fixed with:\nCLI 3.2.0 (git://github.com/appcelerator/titanium.git)\nAlloy 1.3.0\n{code}\nti build -p ios -T dist-adhoc\n{code}\n .ipa file i s created", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-08T22:46:28.000+0000", "updated": "2013-11-08T22:46:28.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }