Make sure a few things. This, unfortunately, is a tedious process, but if you follow these steps carefully, you must be tuned.
1) On the developer certificate utility page on the Apple website, you registered your computer along with its UUID.
2) . You have created and uploaded a development certificate.
3) The identifier of your application (in the same utility) is configured for iCloud. This usually means that you check the box.
4) . The development profile for your application indicates the application identifier specified in (3) , as well as the hardware system registered in (1) , as well as the certificate specified in (2)
5) . After downloading a new provisioning profile, install it both in the system, double-clicking on it, and in Xcode, dragging it to the "Provisioning Profiles" panel in your Organizer.
6) In the build settings for your application, make sure that the code signing identifier points to your new provisioning profile.
source share