{ "id": "61327", "key": "TIMOB-695", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-07-24T13:53:34.000+0000", "created": "2011-04-15T02:34:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "tooling" ], "versions": [], "issuelinks": [ { "id": "19313", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T21:03:05.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

around line 600 the builder.py says

\n
\n# in this case, we have to do different things based on if it's\n# an ad-hoc distribution cert or not - in the case of non-adhoc\n# we don't use the entitlements file but in ad hoc we need to\nadhoc_line = \"CODE_SIGN_ENTITLEMENTS=\"\ndeploytype = \"production_adhoc\"\nif not is_adhoc(appuuid):\n  adhoc_line=\"CODE_SIGN_ENTITLEMENTS = Resources/Entitlements.plist\"\n
\n

the comment is correct but in the code the two adhoc_line\nassignments are the other way around.

{html}", "attachment": [], "flagged": false, "summary": "iPhone buildscript adhoc distribution", "creator": { "name": "saturnpolly", "key": "saturnpolly", "displayName": "SaturnPolly", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "saturnpolly", "key": "saturnpolly", "displayName": "SaturnPolly", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123836", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

SaturnPolly

\n

This ticket does not explain how to reproduce the issue, so\nrisks being marked invalid.

\n

A number of users have asked you to clarify your solution in\nyour original \nQ&A post, and also there is a new user with the\nproblem.

\n

Would you minding helping them, to determine whether this bug\nstill exists, please?

\n

Thanks

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:40.000+0000", "updated": "2011-04-15T02:34:40.000+0000" }, { "id": "123837", "author": { "name": "blueklein76", "key": "blueklein76", "displayName": "blueklein76", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I had this issue, but I can't remember whether it was the build\nthat failed or the installation of the ad-hoc compiled app. I think\nit gave a \"missing entitlements\" error.

\n

To fix, I changed builder.py to:

\n
\n        # in this case, we have to do different things based on if it's\n        # an ad-hoc distribution cert or not - in the case of non-adhoc\n        # we don't use the entitlements file but in ad hoc we need to\n        adhoc_line = \"CODE_SIGN_ENTITLEMENTS=Resources/Entitlements.plist\"\n        deploytype = \"production_adhoc\"\n        if not is_adhoc(appuuid):\n            adhoc_line=\"CODE_SIGN_ENTITLEMENTS=\"\n            deploytype = \"production\"\n
\n

i.e. change the value of \"adhoc_line\" so that it matches the\ncomment.

\n

This code is present in builder.py for SDKs 1.2, 1.3, 1.3.2 but\nthe build process has changed in 1.4 so it may no longer require\nfixing.

{html}", "updateAuthor": { "name": "blueklein76", "key": "blueklein76", "displayName": "blueklein76", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:40.000+0000", "updated": "2011-04-15T02:34:40.000+0000" }, { "id": "123838", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Another Q&A post that includes a solution similar to the\nabove is \nthis one. The bug was found in 1.5.1.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:40.000+0000", "updated": "2011-04-15T02:34:40.000+0000" }, { "id": "123839", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

In order to understand this issue, a build.log file needs to be\nprovided. Does anyone have one they can add?

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:41.000+0000", "updated": "2011-04-15T02:34:41.000+0000" }, { "id": "161039", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug Scrub: Invalid. Test case exists", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-28T16:37:53.000+0000", "updated": "2011-07-28T16:37:53.000+0000" }, { "id": "209192", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Invalidated in bug scrub 28/Jul/11 as per comment. Currently we offer adhoc as well.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-24T13:53:34.000+0000", "updated": "2012-07-24T13:53:34.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }