question

JassimAlRahma-9056 avatar image
0 Votes"
JassimAlRahma-9056 asked WenyanZhang-MSFT commented

none of the currently installed provisioning profiles match

Hi,

Why I am getting:

none of the currently installed provisioning profiles match

I am able to run the app on my device with both Debug and Release but the above error shows when I try to archive my app.



Kindly help..


dotnet-xamarinformsdotnet-ios
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

May I know whether your issue has been solved or not? If not, please share it in here. We can work together to figure it out.

0 Votes 0 ·

1 Answer

WenyanZhang-MSFT avatar image
0 Votes"
WenyanZhang-MSFT answered WenyanZhang-MSFT edited

Hello,

Welcome to our Microsoft Q&A platform!

When you run the app on your device , it use the Developer Provisioning Profile. However, the Distribution Profile is necessary when you try to archive the app. If you have created the Distribution Profile, you could check if there is anything wrong. The App ID of the profile must be consistent with the Bundle Identifier of info.plist .
If you haven't created one, you could refer to the following steps:

  1. In the Apple Developer Center browse to the Certificate, Identifiers and Profiles section. Select App IDs under Identifiers.

  2. Click the + button and provide a Name which will identify it in the Portal.

  3. [Important] The App prefix should be already set as your Team ID, and cannot be changed. Select either an Explicit or Wildcard App ID, and enter a Bundle ID in a reverse DNS format like: Explicit ( com.[DomainName].[AppName], you could fill in your Bundle Identifier of info.plist ) or Wildcard ( com.[DomainName] )

  4. Select any Capabilities and App Services that your app requires. If not, you could choose none of them.

  5. Click the Continue button to create the new App ID.

After completing the above steps, you have created a App ID, and then you can create a new distribution profile for this one.

  1. Return to Certificate, Identifiers and Profiles and select Profiles.

  2. Click the + button and select the type of Distribution that you want to create as App Store

  3. Click the Continue button and select the new App ID from the dropdown list that you want to create a Distribution Profile for

  4. Click the Continue button and select the certificate required to sign the application.(This cer must be in your Keychain in the Mac )

  5. Click the Continue button and enter a Name for this Distribution Profile

Then, you could download this profile and double click it to install into your Mac . Then you could re-open VS and Archive again.

Last but not least, if you want to upload the ipa to AppStore. You may get this " Unable to validate archive " error message, this is a publish issue. You could try to download Apple Transporter in App Store in your Mac, and upload the ipa by Apple Transporter

(click " Archive for Publishing" , click " Sign and Distribute" button, select " App Store" =>" Upload" =>" Next"=>" AppStore Connect information"=>" Publish", it will export an ipa file, the error message will be displayed later )
For more information, you can refer to https://docs.microsoft.com/en-us/xamarin/ios/deploy-test/app-distribution/app-store-distribution/?tabs=macos

Best Regards,
Wenyan Zhang


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.