iTunes Store Operation Failed ERROR ITMS-90159: "Invalid provisioning profile...." - xcode

Unfortunately I have a problem, when uploading my app... here is the situation:
I built an iOS App for a client, but he wants to upload the app via his Developer account. He created a provision profile and added me to his team on iTunes connect (admin).
But when I wanted to upload my app to the App store (in xCode) the following error showed up:
This app contains an embedded provisioning profile that is not associated with your account. Please use a provisioning profile associated with Team ID XXXXXXXX."
What do I need to do? Do he has to give me more rights on iTunes connect/Apple Developer? Have I installed the provisioning profile wrong?
Thank you very much in advance, I have no idea what to do next.

So the answer to the question is in my case that this is only possible with the Apple Developer Agent plan. Then you another Person can add you as a role on the Developer Portal and you are able to upload the project on his name.

Related

No accounts with App Store Connect access have been found for the team

I got this error when submitting an iOS app to the App Store. Product → Archive, clicking "Distribute App" in the Organizer in Xcode 10.
No accounts with App Store Connect access have been found for the team "[My Team Name]". App Store Connect access is required for App Store distribution.
I've logged into App Store Connect as the correct user account and verified that I have administrative access.
App Store Connect used to be called "iTunes Connect," and so this question was answered by another Stack Overflow answer.
When this happens to me, closing Xcode completely and re-opening it solves the problem.
Restarting Xcode fixed the problem for me, too.
Hopefully now that I've posted this question, someone can Google for "App Store Connect" and find the right answer.
Awesome. Quick restart and fixed.
If you don't have an account in App Store Connect the provided solution (i.e. closing and re-opening Xcode) will not work.
Kindly see the following section from official Apple documentation (https://developer.apple.com/support/app-store-connect/).
The person who enrolled in the Apple Developer Program is the main account holder and has the Legal role in App Store Connect, which includes binding authority for contracts, full access to App Store Connect, and more.
The Legal user can provide access to additional team members by setting up accounts for them in App Store Connect. Please note that adding members to a development team on the Apple Developer website will not automatically create accounts for those members in App Store Connect.
Add users by entering their names and email addresses in Users and Access. You can limit each user’s access level for App Store Connect and specific apps. If a user needs full access to App Store Connect, you can assign them the Admin role.
In my case, we had a lot of expired iOS distribution certificates. Yes, not Mac ones, iOS ones. Deleting those solved the problem ¯\_(ツ)_/¯
Quitting the XCode completely and restarting it still gets the issue fixed. But check if your certificates are still valid if this problem persists.

Upload app on Itunes connect without developer account

I am new to IOS development. I develop a simple app for someone.I don't have an
developer account so he added me on his Itunes Connect account as with the App manager role.
When i try to upload its asks for bundle ID and when i go to developer page it ask me to enroll and all.
So my question is how can i archive my app in this case and upload on the itunes connect.
Okay i think there is some confusion.The case is that I am added as a APP manager in someones Itunes connect account. So Can i upload an app there.
When i try to do that its aks for a bundle ID and I am not able to create a bundle id from the develper link. though I have already setup the develope account but its not paid yet.
You can go through the step by step tutorial here and its part 2 is here.
It is really helpful.
You can skip most of the first link as you already have an existing iTunes Connect account.
It is your App's Bundle Id.in Xcode go to Project Navigator then select general in identity there is Bundle Identifier further check the image.
And for Developer account on Apple is free just go to this link and click on "Create Account"
https://idmsa.apple.com/IDMSWebAuth/login?appIdKey=891bd3417a7776362562d2197f89480a8547b108fd934911bcbea0110d07f757&path=%2Faccount%2F&rv=1
If this answer helped you? you can accept it.

Mac app direct distribution: "Your account does not have permission to create Mac App Direct Distribution certificates"

I want to distribute my mac application outside the App Store (as file downloadable from our servers), but every attempt to export archive from Xcode with option "Export a Developer ID-signed Application" ends with a "Permission failure":
Your account does not have permission to create Mac App Direct
Distribution certificates
I've downloaded and added all certificates to my keychain (system).
I'm using an Organization Apple Developer account, so is it possible to use this type of account to sign applications outside the App Store or must I have an Enterprise Program Account to do it? Or is there other problem?
I consulted this problem with Apple and their answer is:
You certainly don’t need an Enterprise account to distribute Developer
ID signed apps. One gotcha here is that you must be the Team Agent in
order to issue Developer ID certificates. Please double check that.
Problem was, that I have Admin role in our team, but only user with Team Agent role has permission to generate certificates for distribution of app outside the App Store (Developer-ID signed apps). So, I generated a Certificate Signing Request and sent it to our Team Agent, then he creeated and sent a certificate for me and now I can sign apps.
This seems to be a bug or poorly described feature in iTunes Connect & the Apple Developer portal.
I had a developer that joined my team, initially as a "member", but wasn't able to create certificates, even after giving him admin access. It turns out, that I believe we were only giving him admin access to Itunes connect, but not to the developer page.
The correct fix was to go to the developer portal, click the "People" tab (or go to this URL https://developer.apple.com/account/#/people/), remove his access, then use the Invite as Admins to add him to the account. He then had to go into Xcode and remove his developer account information, add it back in, and then he was finally able to upload builds to Testflight without this error.
In my case, I signed the app with another team. Change the team and re-achieve the app solves the issue.

Xcode error when uploading to App Store: "No suitable application records were found"

I'm using Ionic to build an html app for iOS. I've registered an app on iTunes Connect.
All goes well in Xcode until I upload to the App Store. I get the following error:
iTunes Store operation failed.
No suitable application records were found. Verify your bundle identifier 'com.iconicframework.app315125' is correct.
I suspect you should not be calling your app "com.ionicframework.app315125". That looks like a leftover name from an example project.
You need to create a new Bundle Identifier in the Developer portal:
Then choose it when you "Create New App" in iTunesConnect:
For me, I'd pick com.maniac-games.lowdown.
Maybe you need to review this document.
In other words:
You must go to developer.apple.com and create a provisioning profile and bundle id.
Assign devices to provisioning
Then ... enter itunesconnect and create app and assign your bundle id.
Enter to Xcode and reload provisioning files.
Enter to Targets files and select provisioning.
Product -> Archive and go on :)
For those who are seeing this answer after June 2020, I'm running XCode 11, and I got this error because I forgot to make an app in App Store Connect:
https://appstoreconnect.apple.com/
If you have XCode 11, under "Signing & Capabilities" -> "Automatically manage signing", it'll solve 90% of the problem for you, but the other 10% is just logging into your developer account, going to App Store Connect -> Apps -> (Blue "+" icon), then select a Bundle ID that matches your Bundle Identifier back in XCode.
I was also facing same issue..I fixed it by creating an app on itunesConnect before uploading app.
once you created app on itunesconnect. you should not get this error anymore.
there should be some authentication and a place to store your build. and if you don't have an app on itunesconnect with same bundle id it will not let you upload your app.
I received the same error on multiple attempts.
Follow below step:
1) Create AppID inside developer site Identifiers -> IDS.
2) Create Provisioning Profiles Certificate Provisioning Profiles - > Distribution.
3) Create App inside iTunes and Give name of app, select Bundle identifier of app and just click on Create app.
4) Inside xcode select Product -> Archive wait few minute then open Organizer(Windows -> Organizer) and show app in Organizer, Click on Upload to App store
5) Successfully you have upload app in app store.
For me the problem was that the user used for uploading was set to Limited Access instead of Full Access. Fixed that via App Information > Additional Information > Edit User Access. Took me several hours to track down! It would of course have been helpful to get a slightly more detailed error message.
Set the Same name.this way is success.
I had the same issue, after a while checking I added my app's details into AppstoreConnect then it was fixed!
Don't forget that at first you need to define a new bundle identifier and provisioning profile.
For the ones who get this error on an app which was sumbitable previously, please log in to iTunesConnect / AppStoreConnect and accept the latest Terms of Services or whatever legal message you have to approve.
Note that if you are working with an external publisher you need someone whose account has the highest permission to have the message appearing.
Well what soloved the issue for me was changing the bundleID when the pop up (while validating) comes up to the actual bundleID which was not right at that time but is now fixed and my app is one the way to the Appstore!
You need to create a new Bundle Identifier in the Developer portal(https://developer.apple.com) like create your app in myapps with same Bundle Identifier

Problems during Xcode Archives validating phase

I passed the last to days in the "Apple-Hell", I'm not able to find a solution on my problem.
I found a lot of solution on internet, specially on stack overflow, but no one had helped me to escape from my labyrinth.
I'm explaining you my situation:
I have got a developer account, i programmed my App with my account sets on Xcode, i cannot publish my app with that account because is not a "Company" Account.
My boss bought a company account, i have to publish my app (built with the other Account) on the App Store with the company account.
I'm having a lot of problem with the team ID, the errors says :
This app contains an embedded provisioning profile that is not associated with your account. Please use a provisioning profile associated with Team ID XXXXXXX.
Invalid provisioning profile. This app contains an embedded provisioning profile that is not associated with your account. Please use a provisioning profile associated with Team ID XXXXXXX.
Invalid code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed:["......."] for 'keychain-access-groups' in 'Payload/...../....'
I'm posting you a screenshot of the organizer's output screen.
Screenshot link
p.s: sorry for my bad english, I hope to find a solution!

Resources