When I upgraded to Xcode 5 I was very disturbed to discover that all of my old provisioning profiles, many of which I'd long since deleted from the app store, were suddenly re-appearing. I couldn't make them go away. All of them showed in the provisioning portal as "managed by Xcode 5".
And those old profiles were updated to include every device that I'd registered in the portal. Egad!
It seemed almost as if Xcode 5 were using Spotlight to find .mobileprovision files no matter where they might be hiding, and to bring them back to life.
I'm not sure I've fixed the problem, but so far this procedure appears to have worked:
- In Xcode 5's Organizer, review all provisioning profiles installed on your development devices. Delete those you no longer want.
- Quit Xcode 5.
- Using spotlight search, find all .mobileprovision files on the development machine.
- Trash every old .mobileprovision file.
- Empty the trash.
- Using Safari, login to the developer portal. Delete every provisioning profile that you don't want to keep.
- Restart Xcode 5.
- Open preferences.
- Open each of your Apple IDs, and View Details.
- Refresh the Provisioning Profiles.