I managed to distribute the IPA. I tried to run the app on an new iPad device when Xcode first tried to add the device to the iOS dev center account and team.
In the start it said the request for adding the device was pending. Then it started giving me an error message. The first dialog said as follows:
No provisioning profiles matching both the team ID “[team id]” and the bundle identifier “[bundle id]” were found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.
After trying to fix the issue it said:
There was an error generating the team provisioning profile for AppID '[app id]'. Please try again. If the problem persists, please contact Apple Developer Program Support. https://developer.apple.com/support
This lead me to double check the team id, which for some reason was incorrect. I searched the disk for both the team id and app id and found the incorrect team id in both the project.pbxproj
file and a file named [projectname].xcent
.
The later file even had the team id + bundle id in a value for the dictionary key keychain-access-groups
which is part of the error message in this question.
I changed the team ids in total three places in those two files and repackaged the app. Suddenly everything was working. :)