apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 987 forks source link

No profiles were found #1122

Closed FireLizard closed 1 year ago

FireLizard commented 3 years ago

Bug Report

Problem

When exporting the built app it should use the automatic created provisioning profile, but it was not found.

# part of `cordova build ios` (see below)
$ xcodebuild -exportArchive ...
...
Details:  Unable to close provisioning ledger entry because not all of its subentries are closed
Object:   <IDEProvisioningLedgerEntry: 0x7fe785999cb0>
Method:   -closeWithError:
Thread:   <NSThread: 0x7fe7853e1d70>{number = 8, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
error: exportArchive: Create certificate

Error Domain=IDEProvisioningErrorDomain Code=19 "Create certificate" UserInfo={IDEDistributionIssueSeverity=3, IDEProvisioningError_UserInfoKey_IDEProvisioningUserAction=<IDEProvisioningCreateTeamOwnedCertificateUserAction: 0x7fe7859aa8c0>, NSLocalizedRecoverySuggestion=Create a new Apple Distribution certificate for your team., NSLocalizedDescription=Create certificate}

error: exportArchive: No profiles for 'org.example.my-app' were found

Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'org.example.my-app' were found" UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription=No profiles for 'org.example.my-app' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'org.example.my-app'.}

** EXPORT FAILED **

Information

It has worked so far until the provisioning profile was expired (error: Provisioning profile "<name>" expired on 5. Jun 2021.).

Command or Code

# clean or add the iOS build
$ cordova clean ios || cordova platform add ios --nosave

# build the iOS app (create archive and export)
$ cordova build ios --release --device --packageType=app-store --automaticProvisioning=true --codeSignIdentity="iPhone Developer" --developmentTeam="<team UID>"

Environment, Platform, Device

Version information

Checklist

dpogue commented 1 year ago

The issue in this case is not the provisioning profile, but the certificate.

The next version of Cordova-iOS will include support for the Cloud Distribution certificate signing that was introduced in Xcode 13.