[TIMOB-24798] iOS: Cannot Ad Hoc package with Xcode 9
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-08-28T20:58:04.000+0000 |
Affected Version/s | Release 6.2.0 |
Fix Version/s | Release 6.2.0 |
Components | CLI, iOS |
Labels | qe-6.2.0 |
Reporter | Eric Wieber |
Assignee | Chris Barber |
Created | 2017-06-08T20:58:54.000+0000 |
Updated | 2017-12-05T10:14:57.000+0000 |
Description
When packaging for Ad Hoc, using Xcode 9, the following error is encountered:
[ERROR] Failed to export archive to ipa
[ERROR] The selected provisioning profile "Explicit Profile (0257457f-5cf0-4147-b527-efce215115a4)" 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.
Looking at the Xcodebuild logs, the underlying error is:
xcodebuild[24760:5096269] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f83b384adb0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProvisioningErrorDomain Code=9 \"\"dashboardcheck.app\" requires a provisioning profile.\" UserInfo={NSLocalizedDescription=\"dashboardcheck.app\" requires a provisioning profile., NSLocalizedRecoverySuggestion=Select a provisioning profile for the \"Default\" build configuration in the project editor.}"
*Steps to reproduce issue*
1. Create a new project
2. Package that project for Ad Hoc
*Expected Results*
The project is packaged without error
*Actual Results*
The above errors are encountered
Ti SDK PR: https://github.com/appcelerator/titanium_mobile/pull/9173
Verified fixed in SDK 6.2.0.v20170711165607. Able to build/package (adhoc and to store) with both explicit and wildcard IDs when using Xcode 9 (beta 2 and 3). No issues encountered.
Reopening based on the discussion on [Github](https://github.com/appcelerator/titanium_mobile/pull/9181#issuecomment-325012240).
Regression fix: Master: https://github.com/appcelerator/titanium_mobile/pull/9364 6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9365
FR Passed, using: MacOS 10.12.6 (16G24b) Ti SDK 6.2.0.v20170828123537 Appc NPM 4.2.9 Appc CLI 6.2.3 Alloy 1.9.13 Xcode 8.3.3 (8E3004b) AdHoc builds do not clear the output directory but instead remove an old .ipa, if present on build. AdHoc builds succeed without error
Verified in SDK builds 6.2.0.v20170828145047 and 7.0.0.v20170828145704
Will this require all apps to be on 6.2 if using Xcode 9 or can you just install the updates without upgrading to SDK 6.2?
[~jceaser] Yeah, there were a few Xcode 9 issues that were fixed in 6.2.0 and even more in 6.2.1.
this is still happening with Xcode 9 and TiSDK 6.3.0, in a project importing a module with a dynamic library. These are fresh from few minutes ago: [ERROR] : Failed to export archive to ipa [ERROR] : The selected provisioning profile "xxx - adhoc (cadbd3a8-0801-4e2e-ab19-xxxx)" 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.