In addition to the solutions mentioned above, I came across another version of this problem.
My organization identifier has changed (it may be due to the adoption of the latest agreement update on developer.apple.com), and therefore the prefix for my application has changed. So while before it was ABCCYZ0U812.com.whatever.app , now it was 90210SUXX11.com.whatever.app
When I went to send, and you get a screen that says: “Sends (application name) to Apple”, as well as a list called “Binary and Rights”, when I expand the listing under my application (twice, since I guess Xcode has an error for the first time) I would see something like
AppName.app (5 entitlements) (provisioning profile) (arrow) application-identifier 90210SUXX11.com.whatever.app ... keychain-access-groups ABCCYZ0U812.com.whatever.app com.apple.developer.team-identifier 90210SUXX11
So for some reason, he still used the old command identifier for the keychain-access-groups bit, but now does not match the new command identifier
I did the following
- Click the arrow next to the provisioning profile to open the Finder where the profiles are located.
- Removed all .mobileprovision files in this directory
- Closed send dialog
- In Xcode, click Xcode -> Preferences -> Accounts and upgrade my account for provisioning profiles
- I tried to send the archive again
Now everything is agreed and it works
AppName.app (5 entitlements) (provisioning profile) (arrow) application-identifier 90210SUXX11.com.whatever.app ... keychain-access-groups 90210SUXX11.com.whatever.app com.apple.developer.team-identifier 90210SUXX11
There may be a subtler way to fix this without deleting everything, but this should put you on the right track.
Tom kidd
source share