Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25652] iOS: Ad-hoc build fails when packaging with WatchApp

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-02-07T17:51:42.000+0000
Affected Version/sRelease 7.0.0, Release 7.0.1
Fix Version/sRelease 7.0.2
ComponentsiOS
Labelsn/a
ReporterVictor Vazquez Montero
AssigneeFeon Sua Xin Miao
Created2018-01-08T20:44:05.000+0000
Updated2018-02-07T18:37:24.000+0000

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:

{quote}[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: : 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={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={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={NSLocalizedDescription="WRAL WatchApp.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.} [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={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 "" 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. {quote}

contents of export_options.plist

{quote} http://www.apple.com/DTDs/PropertyList-1.0.dtd"> method ad-hoc teamId signingCertificate iPhone Distribution: provisioningProfiles {quote}

How to reproduce:

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

Attachments

FileDateSize
IDEDistribution.critical.log2018-01-31T21:23:57.000+0000277
IDEDistribution.standard.log2018-01-31T21:23:57.000+000013050
IDEDistribution.verbose.log2018-01-31T21:23:57.000+00002801
IDEDistributionPipeline.log2018-01-31T21:23:57.000+000076633

Comments

  1. Feon Sua Xin Miao 2018-01-11

    master: https://github.com/appcelerator/titanium_mobile/pull/9722 7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9757 *Note:* Please test on both xcode 8 and 9.
  2. Hans Knöchel 2018-01-12

    [~fmiao] Can you provide a 7.0.2 backport?
  3. Eric Wieber 2018-01-22

    FR Passed. Merged 7.0.2, but the master branch PR is having some issues that prevent merge. Will get them sorted and close
  4. Eric Wieber 2018-01-23

    Verified changes are included in SDK builds 7.0.2.v20180122141000 & 7.1.0.v20180122154344
  5. Victor Vazquez Montero 2018-01-31

    He is still experiencing the issue and has shared xcdistributionlogs:
  6. Victor Vazquez Montero 2018-01-31

    [^IDEDistributionPipeline.log] [^IDEDistribution.verbose.log] [^IDEDistribution.standard.log] [^IDEDistribution.critical.log]
  7. Feon Sua Xin Miao 2018-02-07

    Tried build for dist-adhoc with 7.0.2.v20180125101244, I can't reproduce the reported error.
  8. Victor Vazquez Montero 2018-02-07

    [~fmiao] Thank you. I had the customer try the lastest night build and everything is working
  9. Eric Wieber 2018-02-07

    Closing in light of the verified fix from QE and the customer

JSON Source