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
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.
[~fmiao] Can you provide a 7.0.2 backport?
FR Passed. Merged 7.0.2, but the master branch PR is having some issues that prevent merge. Will get them sorted and close
Verified changes are included in SDK builds 7.0.2.v20180122141000 & 7.1.0.v20180122154344
He is still experiencing the issue and has shared xcdistributionlogs:
[^IDEDistributionPipeline.log] [^IDEDistribution.verbose.log] [^IDEDistribution.standard.log] [^IDEDistribution.critical.log]
Tried build for dist-adhoc with 7.0.2.v20180125101244, I can't reproduce the reported error.
[~fmiao] Thank you. I had the customer try the lastest night build and everything is working
Closing in light of the verified fix from QE and the customer