1. Go to website pai.apple.com -- IOS Dev center.
2. After logging on, click IOS provisioning portal under IOS Developer Program in the upper right corner.
3. If you want to add a new device, click devices -->
Add devices --> enter the device name and device ID (Open xcode -- window -- organizer -- click the device with the green dot on the back of the left sidebar (the device currently inserted, if the device cannot be opened, it may be a yellow dot) --- summary -- copy the long string of identifier -- submit
4. Add an Application ID and click app IDs --- New appid -- Description (describe what the project is doing, generally in English) -- the second blank (generally project name + company name Project *** .company.com) -- submit -- the result of the previous operation is displayed in the list.
5. Click provisioning -- New profile --- fill in profile name -- certificates -- app ID select the created one -- devices select the newly added device -- submit (bind the device to the Application) --- refresh the page and you will see a download next to the one you just created. Click Download --- download. mobileprovision file --- Open xcode, window, and organizer -- drag the downloaded file to provisioning (this step binds the device to the application and generates a Certificate)
6. Open xcode project -- Right-click get info -- cofiguration (active (Debug) --- Select any iPhone OS device from the list below and select your own device
7. In the plist file of the project, change the bundle identifier content to the newly created appidproject *** .company.com (the same as the one written in step 3)