Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Code-90161 Invalid provisioning profile

ERROR ITMS-90161:"Invalid Provisioning Profile

I have created IPA using Xamarin IOS in ad-hoc mode and selected a adhoc provisioning profile. but while uploading, following error annoying me :(

when I uploaded using application loader:

ERROR ITMS-90161:"Invalid Provisioning Profile.The provisioning profile included in the bundle x.x.x.x[Payload/x.x.x.app] is invalid.[Missing code-signing certificate.] For more information,visit the iOS developer Portal."

like image 701
Ravi Anand Avatar asked Mar 10 '15 10:03

Ravi Anand


People also ask

What is the provisioning profile?

A provisioning profile links your signing certificate and App ID so that you can sign apps to install and launch on iOS devices. You must have a development provisioning profile to sign apps for use with iOS Gateway version 3.4 and later.


2 Answers

My issue was related to having Xcode Automatically manage signing. What finally fixed the issue for me was going into the developer portal, selecting Certificates, and revoking the Distribution Managed certificate. I then rebuilt my project in Xcode, keeping the checkmark enabled to Automatically manage signing, and a new Distribution Managed certificate was automatically created in the developer portal under certificates. Distributing the archive to the App Store no longer produced any errors.

This issue also came up in other projects where I manually manage the Provisioning Profile. What worked for me was doing the following on the developer.apple.com portal:

  1. Revoke the existing Distribution Certificate linked to the app's provisioning profile.
  2. Issue a new Apple Distribution Certificate.
  3. Link the new certificate to the app's provisioning profile.
  4. Make sure to select the correct provisioning profile for your app's target in Xcode.
like image 177
de3z1e Avatar answered Sep 29 '22 17:09

de3z1e


While de3z1e's solution seems to work for most people, it did not work for me. What did work was creating an Apple Distribution cert when using XCode settings. While Xcode is open,

Go to preferences (Command + ,) -> Accounts -> Choose your team -> Manage certificates -> + (bottom left) -> Apple Distribution -> Re-archive + upload

I am not sure why the other solution did not work for me, but this did. I also have Xcode manual signing on and left it on.

like image 43
TEEBQNE Avatar answered Sep 29 '22 18:09

TEEBQNE