Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15403] iOS: Not possible to build adhoc IPA with CLI 3.2.0

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-19T01:40:26.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsCLI, iOS
Labelsqe-closed-3.2.0
Reporterflorian bergmann
AssigneeChris Barber
Created2013-10-07T08:25:59.000+0000
Updated2013-11-08T22:48:08.000+0000

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. In 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.

Comments

  1. Dan Tamas 2013-10-07

    The problem is in the new detect.js that is in the sdk itself (not in the Ti CLI)
       /Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20130927153242/iphone/cli/lib/detect.js
       
    The 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. So I changed the detection part from
       if (!p.ProvisionedDevices || !p.ProvisionedDevices.length) {
       	dest = 'distribution';
       } else if (new Buffer(p.DeveloperCertificates[0], 'base64').toString().indexOf('Distribution:') != -1) {
       	dest = 'adhoc';
       }
       
    to
       if (!p.ProvisionedDevices || !p.ProvisionedDevices.length) {
       	dest = 'distribution';
       } else if (!entitlements['get-task-allow']) {
       	dest = 'adhoc';
       }
       
    and it seems to work fine at least for 3.2.0.v20130927153242
  2. Chris Barber 2013-10-07

    [~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.
  3. Dan Tamas 2013-10-07

  4. Chris Barber 2013-10-07

    [~rborn] Yeah, that is also fixed, but pending PR. I have moved TC-3104 to timob.
  5. Dan Tamas 2013-10-07

    Cool, thank you.
  6. Dan Tamas 2013-10-07

    [~cbarber] sorry to be a pita, but it seems that CLI 3.2.0 fully builds everytime I run it.
       titanium build -p ios
       
    Is this fixed too in the PR or do I have to open a new ticket? Thnx,
  7. Chris Barber 2013-10-07

    [~rborn] The problem is with device and distribution builds. Simulator builds should be fine.
  8. Dan Tamas 2013-10-07

    Nope, it rebuilds everything each time on simulator too.
  9. Allen Yeung 2013-10-19

    Fixed as a part of https://github.com/appcelerator/titanium_mobile/pull/4781
  10. Olga Romero 2013-11-08

    Tested and verified Fixed with: CLI 3.2.0 (git://github.com/appcelerator/titanium.git) Alloy 1.3.0
        ti build -p ios -T dist-adhoc
        
    .ipa file i s created

JSON Source