Error with provisioning profiles while making iOS App Store Build

iOS App Store builds worked for us fine last week, but the past couple of days, they started failing for us during the code signing step:

[15:23:44]: ------------------------------------
[15:23:44]: --- Step: automatic_code_signing ---
[15:23:44]: ------------------------------------
==========================================
This action (automatic_code_signing) is deprecated
Please use `update_code_signing_settings` action instead.
==========================================

[15:23:44]: The `automatic_code_signing` action has been deprecated,
[15:23:44]: Please use `update_code_signing_settings` action instead.

+-----------------------+-------------------------------------------------------------------+
|                             Summary for Automatic Codesigning                             |
+-----------------------+-------------------------------------------------------------------+
| path                  | /Users/ionic/builds/Fitmoola/system2-mobile/ios/App/App.xcodeproj |
| use_automatic_signing | false                                                             |
| team_id               | PH7WPZ8Q9D                                                        |
| code_sign_identity    | Apple Distribution: Scout Invest Inc. (PH7WPZ8Q9D)                |
+-----------------------+-------------------------------------------------------------------+

[15:23:44]: Updating the Automatic Codesigning flag to disabled for the given project '/Users/ionic/builds/Fitmoola/system2-mobile/ios/App/App.xcodeproj/project.pbxproj'
[15:23:44]: Set Team id to: PH7WPZ8Q9D for target: System2
[15:23:44]: Set Code Sign identity to: Apple Distribution: Scout Invest Inc. (PH7WPZ8Q9D) for target: System2
[15:23:44]: Successfully updated project settings to use Code Sign Style = 'Manual'
[15:23:44]: Modified Targets:
[15:23:44]: 	 * System2
[15:23:44]: ------------------------------------------
[15:23:44]: --- Step: update_provisioning_profiles ---
[15:23:44]: ------------------------------------------
[15:23:49]: Failed to update provisioning profiles:
 while: getting targets for project 
 Shell command exited with exit status 65 instead of 0.
[15:23:49]: -------------------------
[15:23:49]: --- Step: upload_logs ---
[15:23:49]: -------------------------
[15:23:49]: ---------------------------
[15:23:49]: --- Step: shell command ---
[15:23:49]: ---------------------------
[15:23:49]: -----------------------------
[15:23:49]: --- Step: delete_keychain ---
[15:23:49]: -----------------------------
[15:23:49]: Shell command exited with exit status 65 instead of 0.
+-------------------------------------+------------------------------------------------------------------------------------------------------+
|                                                                Lane Context                                                                |
+-------------------------------------+------------------------------------------------------------------------------------------------------+
| DEFAULT_PLATFORM                    | ios                                                                                                  |
| PLATFORM_NAME                       | ios                                                                                                  |
| LANE_NAME                           | ios package_build                                                                                    |
| PROJECT_WEB_DIR                     | serve                                                                                                |
| DOWNLOAD_CERTS_PROVISION_FILE_UUID  | 3fd06bf8-d568-4497-bc55-3d0a4c0398c9                                                                 |
| DOWNLOAD_CERTS_CODESIGNING_IDENTITY | Apple Distribution: Scout Invest Inc. (PH7WPZ8Q9D)                                                   |
| DOWNLOAD_CERTS_TEAM_ID              | PH7WPZ8Q9D                                                                                           |
| DOWNLOAD_CERTS_PROJECT_NAME         | System2 - DEV                                                                                        |
| DOWNLOAD_CERTS_CERT_PATH            | /Users/ionic/builds/Fitmoola/system2-mobile/cert_file.p12                                            |
| SIGH_PROFILE_PATHS                  | ["/Users/ionic/builds/Fitmoola/system2-mobile/3fd06bf8-d568-4497-bc55-3d0a4c0398c9.mobileprovision"] |
+-------------------------------------+------------------------------------------------------------------------------------------------------+
[15:23:49]: Shell command exited with exit status 65 instead of 0.

+------+------------------------------+-------------+
|                 fastlane summary                  |
+------+------------------------------+-------------+
| Step | Action                       | Time (in s) |
+------+------------------------------+-------------+
| 1    | default_platform             | 0           |
| 2    | build_summary                | 0           |
| 3    | detect_native_type           | 0           |
| 4    | get_web_dir                  | 0           |
| 5    | add_git_credentials          | 0           |
| 6    | modify_cap_web_config        | 0           |
| 7    | create_keychain              | 0           |
| 8    | download_certs               | 2           |
| 9    | import_certificate           | 0           |
| 10   | build_pro_app                | 220         |
| 11   | modify_cap_ios_config        | 0           |
| 12   | cap_sync                     | 36          |
| 13   | cap_custom_deploy            | 0           |
| 14   | automatic_code_signing       | 0           |
| 💥   | update_provisioning_profiles | 4           |
| 16   | upload_logs                  | 0           |
| 17   | shell command                | 0           |
| 18   | delete_keychain              | 0           |
+------+------------------------------+-------------+

[15:23:49]: fastlane finished with errors
/usr/local/Cellar/fastlane/2.148.1/libexec/bin/fastlane: [!] Shell command exited with exit status 65 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
Running after script...
$ clean-up
ERROR: Job failed: Process exited with: 1. Reason was:  ()

Has anyone seen a similar issue before or have an idea how to fix it? I tried to manually make a build in xcode with the same certificate and provisioning profile, and that build validates just fine.

1 Like

Hi,

Sorry to see you’re having trouble. We did make some recent changes to the way code signing assets are managed but we’re not seeing widespread reports of trouble. Better not to get too deep into a discussion of your provisioning profile in the public forum. Feel free to open a ticket by emailing support@ionic.io. Be sure to use the email address registered to your Appflow account and include your Appflow App ID.

Cheers,