iOS Build App Provisioning Errors

Hello,

I am trying to build a new iOS app and while running the builds have been getting this error:

error: "App" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. (in target 'App' from project 'App')
[01:42:55]: ▸ note: Building targets in parallel
[01:42:55]: ▸ note: Using codesigning identity override: iPhone Developer: miles smith (SNB3LH342G)
[01:42:55]: ▸ note: Planning build
[01:42:55]: ▸ note: Constructing build description
[01:42:55]: ▸ error: "App" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. (in target 'App' from project 'App')
[01:42:55]: 
[01:42:55]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[01:42:55]: 📋  For the complete and more detailed error log, check the full log at:
[01:42:55]: 📋  /Users/ionic/Library/Logs/gym/App-App.log
[01:42:55]: 
[01:42:55]: Your `export_method` in gym is defined as `development`
[01:42:55]: which might cause problems when signing your application
[01:42:55]: Are you sure want to build and export for development?
[01:42:55]: Please make sure to define the correct export methods when calling
[01:42:55]: gym in your Fastfile or from the command line
[01:42:55]: 
[01:42:55]: 
[01:42:55]: Looks like fastlane ran into a build/archive error with your project
[01:42:55]: It's hard to tell what's causing the error, so we wrote some guides on how
[01:42:55]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[01:42:55]: Before submitting an issue on GitHub, please follow the guide above and make
[01:42:55]: sure your project is set up correctly.
[01:42:55]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[01:42:55]: the full commands printed out in yellow in the above log.
[01:42:55]: Make sure to inspect the output above, as usually you'll find more error information there
[!] Error building the application - see the log above
+------+------------------------------+-------------+
|                 fastlane summary                  |
+------+------------------------------+-------------+
| Step | Action                       | Time (in s) |
+------+------------------------------+-------------+
| 1    | default_platform             | 0           |
| 2    | build_summary                | 0           |
| 3    | add_git_credentials          | 0           |
| 4    | get_appflow_config           | 0           |
| 5    | detect_native_type           | 0           |
| 6    | dependency_install           | 43          |
| 7    | create_capacitor_config      | 0           |
| 8    | get_web_dir                  | 0           |
| 9    | modify_cap_web_config        | 0           |
| 10   | create_keychain              | 0           |
| 11   | download_certs               | 2           |
| 12   | import_certificate           | 0           |
| 13   | build_pro_app                | 76          |
| 14   | modify_cap_ios_config        | 0           |
| 15   | cap_sync                     | 10          |
| 16   | cap_custom_deploy            | 0           |
| 17   | automatic_code_signing       | 0           |
| 18   | update_provisioning_profiles | 4           |
| 💥   | gym                          | 10          |
| 20   | upload_logs                  | 18          |
| 21   | shell command                | 0           |
| 22   | delete_keychain              | 0           |
+------+------------------------------+-------------+

[01:43:13]: fastlane finished with errors
2 Likes

Hi mythlin,

This could be related to a mismatch between the bundle ID in your capacitor project and your signing credentials.

You can correct this by using one of the following options:

  • From your Apple developer account create a new signing certificate and provisioning profile that matches the bundle ID in your app. (or)

  • Update the bundle Id (App Id) in your capacitor project that matches the certificates.(or)

  • If you are on Growth or above plan you can use native configs to override the bundle ID in appflow.

If you are facing any further issues, I would encourage you to contact the Appflow support for further assistance.

Thanks,

2 Likes

Dear @Likhith_Aalla :slightly_smiling_face:

I am facing the same error even after having the same bundle id and app id.

Can you please help?

Thank You

1 Like

Hello everyone,

Same problem occuring here. Followed step by step the documentation.
@mythlin : Did you find any solution on this?

Thanks,

Hello,

If you are looking to update the bundle ID in your capacitor project make sure you update the following:

  1. /ios/App/App.xcodeproj/project.pbxproj (2 occurrences)
  2. /ios/App/App/capacitor.config.json
  3. /capacitor.config.json

If you are still facing the same issue, It would be helpful to take a closer look at your build log. I encourage you to contact our Appflow support for further assistance.

Thanks,

2 Likes

I just encountered this today trying my first iOS build. Did you ever get past it @mythlin ? How about you @julienbzk ?