I have a project with several targets representing different iOS apps. XCode 8.2 fails to validate one of target archives due to missing provisioning profile:
"XCode attempted to locate or generate matching signing assets and failed to do so because of the following issues:
No matching provisioning profiles found for "Applications/myApp.app" None of the valid provisioning profiles allowed the specified entitlements: application identifier, beta-reports-active, keychain-access-groups"
It's there, I've even created a second one. Reset distribute certificate twice, deleted and recreated all provisioning profiles, manually downloaded and dragged to xcode icon all of them, restarted XCode hundred times, deleted profiles - still no luck passing validation.
I've had this problem with other targets but these steps helped to go through... but one particular target still fails.
XCode preferences provisioning profiles management is a complete mess IMO - downloading profiles stalls, profiles disappear after a while ("download" button appears), there are profiles in a list that were deleted from developed portal long time ago etc.
What else can I do to pass validation? Manualy point to particular profile somehow? - in latest XCode-s i't automatic but it looks like something is seriously broken in said automation - there are hundreds of complains around the web.
Thanks in advance...
Edit: Disabled automatic code signing in target settings, it gave me choice of 3 valid provisioning profiles for this app - 2 created by me and 1 created automatically by XCode. Tried archiving with all 3, still failed validation. Set automatic back on.
Edit2: Passed finally. Switched to manual signing again, set all 3 configurations (Debug, Release and AppStore) to distribution certificate*, deleted profile that was automatically created by XCode, archived and this archive finally passed validation.
* - I guess this was a thing that fixed it.