How to create an iOS provisioning file
When you're building an iOS app, provisioning files are important for signing your apps so they can be used on certain devices. If you develop with PhoneGap, the PhoneGap build tool requires a provisioning file to sign your app.
Here's how to do it.
Head over to the Apple Developers control panel and log in
In the menu on the left, select "Certificates, IDs & Profiles"
From the menu on the left, select "Provisioning Profiles" > "All". All your profiles will be listed on this page
Press the "+" button in the top right corner. Select profile type. There are two main types of profiles
iOS App Development - Used for deploying your app to test devices (but not TestFlight)
App Store - Used for deploying your app to production devices through the App Store (and also TestFlight)
Select a profile type and click "Continue"
Select your app ID from the drop down and click "Continue"
Select the certificate that you signed (or will sign) the app with and "Continue"
Select a test device and click "Continue" (if you don't have a test device, check out how to add test devices to see how they're created)
Give your profile a name and click "Continue"
Download your provisioning profile