Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-695] iPhone buildscript adhoc distribution

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-07-24T13:53:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelscore, tooling
ReporterSaturnPolly
AssigneeNeeraj Gupta
Created2011-04-15T02:34:39.000+0000
Updated2012-07-26T21:03:05.000+0000

Description

around line 600 the builder.py says

# in this case, we have to do different things based on if it's

an ad-hoc distribution cert or not - in the case of non-adhoc

we don't use the entitlements file but in ad hoc we need to

adhoc_line = "CODE_SIGN_ENTITLEMENTS=" deploytype = "production_adhoc" if not is_adhoc(appuuid): adhoc_line="CODE_SIGN_ENTITLEMENTS = Resources/Entitlements.plist"

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

Comments

  1. hal 2011-04-15

    SaturnPolly

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

    A number of users have asked you to clarify your solution in your original http://developer.appcelerator.com/question/32391/ad-hoc-finally-working-"> Q&A post, and also there is a new user with the problem.

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

    Thanks

  2. blueklein76 2011-04-15

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

    To fix, I changed builder.py to:

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

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

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

  3. hal 2011-04-15

    Another Q&A post that includes a solution similar to the above is http://developer.appcelerator.com/question/89391/problem-installing-to-device-itunes#195331"> this one. The bug was found in 1.5.1.

  4. hal 2011-04-15

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

  5. Vikramjeet Singh 2011-07-28

    Bug Scrub: Invalid. Test case exists
  6. Stephen Tramer 2012-07-24

    Invalidated in bug scrub 28/Jul/11 as per comment. Currently we offer adhoc as well.

JSON Source