Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25652

iOS: Ad-hoc build fails when packaging with WatchApp

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0, Release 7.0.1
    • Fix Version/s: Release 7.0.2
    • Component/s: iOS
    • Labels:
      None
    • Environment:
    • Story Points:
      3
    • Sprint:
      2018 Sprint 01 Tooling

      Description

      Issue.

      Ad-hoc building of application with Watch app fails with the output below. The Ad Hoc provisioning profiles are up to date and associated with the signing identity. The same set-up works using Xcode 8.3.3/ 9.2 and Ti 6.2.1. Other apps with no associated watch apps build without issue.

      Error:

      [DEBUG] Packaging IPA for target dist-adhoc
      [DEBUG] Deleting old .ipa file
      [DEBUG] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath "/Users/ian/git/mobile/wralnews/build/iphone/WRAL_News.xcarchive" -exportPath "/Users/ian/Desktop" -exportOptionsPlist "/Users/ian/git/mobile/wralnews/build/iphone/export_options.plist"
      [TRACE] 2018-01-04 17:52:47.391 xcodebuild[53745:14054966] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/m5/plphwvdn33xcbfzbspj8qxgm0000gn/T/WRAL_News_2018-01-04_17-52-47.390.xcdistributionlogs'.
      [TRACE] 2018-01-04 17:52:47.886 xcodebuild[53745:14054966] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f8594246f00>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
      [TRACE] "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"WRAL WatchApp.app\" requires a provisioning profile.\" UserInfo=

      Unknown macro: {NSLocalizedDescription="WRAL WatchApp.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

      ",
      [TRACE] "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"WRAL WatchApp Extension.appex\" requires a provisioning profile.\" UserInfo=

      Unknown macro: {NSLocalizedDescription="WRAL WatchApp Extension.appex" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

      "
      [TRACE] )}
      [TRACE] error: exportArchive: "WRAL WatchApp.app" requires a provisioning profile.
      [TRACE]
      [TRACE] Error Domain=IDEProvisioningErrorDomain Code=9 ""WRAL WatchApp.app" requires a provisioning profile." UserInfo=


      [TRACE]
      [TRACE] error: exportArchive: "WRAL WatchApp Extension.appex" requires a provisioning profile.
      [TRACE]
      [TRACE] Error Domain=IDEProvisioningErrorDomain Code=9 ""WRAL WatchApp Extension.appex" requires a provisioning profile." UserInfo=

      Unknown macro: {NSLocalizedDescription="WRAL WatchApp Extension.appex" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}


      [ERROR] Failed to export archive to ipa
      [ERROR] The selected provisioning profile "<REDACTED>" is most likely not a valid Ad Hoc provisioning profile.
      [ERROR] Please ensure you are using a valid Ad Hoc provisioning that is linked to the signing identity, then try again.

      contents of export_options.plist

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>method</key>
      <string>ad-hoc</string>
      <key>teamId</key>
      <string><REDACTED></string>
      <key>signingCertificate</key>
      <string>iPhone Distribution: <REDACTED></string>
      <key>provisioningProfiles</key>
      <dict>
      <key><REDACTED></key>
      <string><REDACTED></string>
      </dict>
      </dict>
      </plist>

      How to reproduce:

      Create iOS app with Watch app associated
      Package with Ad-Hoc profile

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                vvazquezmontero Victor Vazquez Montero
                Reviewer:
                Chris Barber
                Tester:
                Eric Wieber
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6081
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code