When I upload the app to testflight, I get the following error: "Provisioning profile failed qualification. Profile doesn't include the selected signing certificate.". I have regenerated the profile. I have cleared cache, deleted profile and certificate and imported it back to xcode. Any ideas?
Profile doesn't include the selected signing certificate
Thank you for your post. Upon reviewing the screenshot, I noticed that you did not select the automatic manage signing option. This option will automatically create provisioning profiles that are valid for the bundle ID with the correct certificates.
I have created a checklist that I use to ensure that each step is completed correctly. It may be helpful in identifying the issue you are experiencing. However, based on the screenshots you have provided, it appears that you have already completed most of the troubleshooting steps.
Here is a step-by-step guide to resolving the "Provisioning profile failed qualification. Profile doesn't include the selected signing certificate" error:
1. Check Signing Settings in Xcode:
- Open your Xcode project.
- Select your target.
- Go to the "General" tab.
- Under "Signing & Capabilities," ensure that the "Bundle Identifier" matches the one in your provisioning profile.
- Verify that the correct "Signing Certificate" and "Provisioning Profile" are selected for both "Debug" and "Release" configurations.
2. Validate Signing Settings:
- In Xcode, go to the "Product" menu.
- Select "Archive."
- After archiving, Xcode will open the Organizer window (or "Window" > "Organizer").
- Click on the "Validate" button for your archived app.
- This will check your signing settings and identify any potential issues.
3. Export and Distribute the App:
- If the validation is successful, proceed to export the app for TestFlight.
- In the Organizer window, click on the "Distribute" button.
- Follow the prompts to select the "TestFlight" option and export the app.
4. Additional Troubleshooting:
- Check Certificate Expiry: Ensure that both your signing certificate and provisioning profile are not expired.
- Wildcard Provisioning Profile: If you are using a wildcard provisioning profile, make sure that the bundle identifier in your Xcode project starts with the same wildcard prefix.
- Code Signing Entitlements: Verify that your entitlements file (if used) is correct and matches the entitlements specified in your provisioning profile.
Please inform me if enabling automatic management of signing resolves your issue or if you encounter any errors during the process.
Albert Pascual Worldwide Developer Relations.