Apple requires every app to be signed with a certificate and matched to a provisioning profile before it can be installed anywhere – a simulator, a test device, or the App Store itself.
Steps
1. Go to Credentials
Open Settings → Credentials, iOS section.
2. Choose your Distribution Type
- App Store – for public release.
- Ad-hoc – for a specific, limited set of test devices.
- Development – for installing on physical devices during testing.
- Enterprise – for internal distribution across a larger organization.
Most apps heading to the public App Store will choose App Store here.
3. Upload your Distribution Certificate
A certificate file (in the .p12 format), plus its Certificate Password if it has one.
4. Upload your Provisioning Profile
A provisioning profile file that matches your chosen distribution type.