If you haven't configured your device for development, we can use Xcode's organizer tool to log in to the Apple provisioning portal and set up the required certificates and register your device:
1. Open Xcode, if it isn't already. Select Window | Organizer from the menu bar. This will open the organizer that allows us to manage our iOS devices, their provisioning, and app submissions.
2. Now plug an iOS device in, such as an iPhone or iPad. If it's syncing with iTunes, wait for it to finish. Make sure that the device tab of the organizer is selected and find your device in the list to the left.
3. Select the device and click on the Use for Development buttonto allow it to be set up for development.
4. Once the device has been configured locally, select the + Add to Portal buttonto contact the Apple developer portal that will set up your device. Enter the Username and Password for your Apple ID/developer account:
5. The organizer will now talk to Apple...