/Users/gitlab/builds/my-company/my-app/ios/App/App.xcodeproj: error: No profiles for 'com.my.app' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.my.app'
I'm experiencing an error similar to #382737 running on Gitlab pipeline using macos-12-xcode-14 image, curiously when I run it locally it works perfectly. These are the details, please, if you miss anything, don't hesitate to ask me:
I have an Ionic application with Capacitor, and I have fastlane configured to deploy it to TestFlight, but it fails to retrieve the provisioning profiles.
Fastfile (my-app/ios/App/fastlane/Fastfile)
default_platform(:ios)
skip_docs
platform :ios do
desc "Builds and signs the application for the given options"
lane :build do |options|
check_options(options)
setup_ci
match(type: "development", readonly: is_ci, verbose: true)
gym(export_method: "development", verbose: true)
end
desc "Builds and signs the application for distribution, upload to TestFlight"
lane :beta do
setup_ci
match(type: "appstore", readonly: is_ci, verbose: true)
app_store_connect_api_key(
key_id: ENV['APP_STORE_CONNECT_API_KEY_KEY_ID'],
issuer_id: ENV['APP_STORE_CONNECT_API_KEY_ISSUER_ID'],
key_content: ENV['APP_STORE_CONNECT_API_KEY_KEY_CONTENT'],
duration: 1200, # optional (maximum 1200)
in_house: true # optional but may be required if using match/sign
)
increment_build_number(
build_number: latest_testflight_build_number(initial_build_number: 1) + 1,
xcodeproj: "App.xcodeproj"
)
gym(export_method: "app-store", verbose: true)
upload_to_testflight(skip_waiting_for_build_processing: true)
end
end
def check_options(options)
unless options[:match_type] || options[:export_method]
UI.user_error!("Missing :match_type or :export_method option. Please provide both parameters.")
end
end
Pipeline log
----------------------------------------+---------+------------------------+
| Used plugins |
+----------------------------------------+---------+------------------------+
| Plugin | Version | Action |
+----------------------------------------+---------+------------------------+
| fastlane-plugin-increment_version_name | 0.0.10 | increment_version_name |
+----------------------------------------+---------+------------------------+
[09:28:56]: Sending anonymous analytics information
[09:28:56]: Learn more at https://docs.fastlane.tools/#metrics
[09:28:56]: No personal or sensitive data is sent.
[09:28:56]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[09:28:56]: ------------------------------
[09:28:56]: --- Step: default_platform ---
[09:28:56]: ------------------------------
[09:28:56]: Driving the lane 'ios beta' 🚀
[09:28:56]: ----------------------
[09:28:56]: --- Step: setup_ci ---
[09:28:56]: ----------------------
[09:28:56]: Creating temporary keychain: "fastlane_tmp_keychain".
[09:28:56]: $ security list-keychains -d user
[09:28:56]: ▸ "/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db"
[09:28:56]: Found keychain '/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db' in list-keychains, adding to search list skipped
[09:28:56]: Enabling match readonly mode.
[09:28:56]: -------------------
[09:28:56]: --- Step: is_ci ---
[09:28:56]: -------------------
INFO [2023-08-22 09:28:56.58]: -------------------
INFO [2023-08-22 09:28:56.58]: --- Step: match ---
INFO [2023-08-22 09:28:56.58]: -------------------
INFO [2023-08-22 09:28:56.58]: Successfully loaded '/Users/gitlab/builds/my-company/my-app/ios/App/fastlane/Matchfile' 📄
+----------------+--------------------------------------------------------------------+
| Detected Values from './fastlane/Matchfile' |
+----------------+--------------------------------------------------------------------+
| git_url | https://gitlab.com/my-company/my-app |
| storage_mode | git |
| type | appstore |
| app_identifier | ["com.my.app", "com.my.app.pushextension"] |
+----------------+--------------------------------------------------------------------+
+----------------------------------------+--------------------------------------------------------------------+
| Summary for match 2.214.0 |
+----------------------------------------+--------------------------------------------------------------------+
| type | appstore |
| readonly | true |
| verbose | true |
| generate_apple_certs | true |
| skip_provisioning_profiles | false |
| app_identifier | ["com.my.app", "com.my.app.pushextension"] |
| username | alvaro@mycompany.com |
| team_id | TEAM_ID |
| storage_mode | git |
| git_url | https://gitlab.com/my-company/my-app |
| git_branch | master |
| shallow_clone | false |
| clone_branch_directly | false |
| git_basic_authorization | ******** |
| skip_google_cloud_account_confirmation | false |
| gitlab_host | https://gitlab.com |
| keychain_name | fastlane_tmp_keychain |
| force | false |
| force_for_new_devices | false |
| include_mac_in_profiles | false |
| include_all_certificates | false |
| force_for_new_certificates | false |
| skip_confirmation | false |
| safe_remove_certs | false |
| skip_docs | false |
| platform | ios |
| derive_catalyst_app_identifier | false |
| fail_on_name_taken | false |
| skip_certificate_matching | false |
| skip_set_partition_list | false |
+----------------------------------------+--------------------------------------------------------------------+
Then the log shows how the repository is cloned and the certificates and provisioning profiles are decrypted. The following error is displayed in this part:
+DEBUG [2023-08-22 09:28:58.11]: Your certificate 'MYCERT.cer' is valid
INFO [2023-08-22 09:28:58.11]: Installing certificate...
INFO [2023-08-22 09:28:58.11]: $ security default-keychain -d user
INFO [2023-08-22 09:28:58.12]: ▸ "/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db"
INFO [2023-08-22 09:28:58.12]: $ security find-certificate -a -c 'Apple Worldwide Developer Relations' -p /Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db
INFO [2023-08-22 09:28:58.15]: $ security default-keychain -d user
INFO [2023-08-22 09:28:58.16]: ▸ "/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db"
DEBUG [2023-08-22 09:28:58.16]: Installing WWDR Cert: curl -f -o /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG2.cer20230822-4860-h9ao1z https://www.apple.com/certificateauthority/AppleWWDRCAG2.cer && security import /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG2.cer20230822-4860-h9ao1z -k /Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db
INFO [2023-08-22 09:28:58.21]: ▸ 1 certificate imported.
INFO [2023-08-22 09:28:58.21]: ▸ 100 763 100 763 0 0 38307 0 --:--:-- --:--:-- --:--:-- 47687
INFO [2023-08-22 09:28:58.21]: $ security default-keychain -d user
INFO [2023-08-22 09:28:58.22]: ▸ "/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db"
DEBUG [2023-08-22 09:28:58.22]: Installing WWDR Cert: curl -f -o /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG3.cer20230822-4860-n9j9e6 https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer && security import /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG3.cer20230822-4860-n9j9e6 -k /Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db
INFO [2023-08-22 09:28:58.26]: ▸ 1 certificate imported.
INFO [2023-08-22 09:28:58.26]: ▸ 100 1109 100 1109 0 0 71350 0 --:--:-- --:--:-- --:--:-- 92416
INFO [2023-08-22 09:28:58.26]: $ security default-keychain -d user
INFO [2023-08-22 09:28:58.27]: ▸ "/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db"
DEBUG [2023-08-22 09:28:58.27]: Installing WWDR Cert: curl -f -o /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG4.cer20230822-4860-y0xs1h https://www.apple.com/certificateauthority/AppleWWDRCAG4.cer && security import /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG4.cer20230822-4860-y0xs1h -k /Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db
INFO [2023-08-22 09:28:58.38]: ▸ 1 certificate imported.
INFO [2023-08-22 09:28:58.38]: ▸ 100 1113 100 1113 0 0 12295 0 --:--:-- --:--:-- --:--:-- 12793
INFO [2023-08-22 09:28:58.38]: $ security default-keychain -d user
INFO [2023-08-22 09:28:58.39]: ▸ "/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db"
DEBUG [2023-08-22 09:28:58.39]: Installing WWDR Cert: curl -f -o /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG5.cer20230822-4860-9xw0y4 https://www.apple.com/certificateauthority/AppleWWDRCAG5.cer && security import /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG5.cer20230822-4860-9xw0y4 -k /Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db
INFO [2023-08-22 09:28:58.43]: ▸ 1 certificate imported.
INFO [2023-08-22 09:28:58.43]: ▸ 100 1113 100 1113 0 0 43559 0 --:--:-- --:--:-- --:--:-- 50590
INFO [2023-08-22 09:28:58.43]: $ security default-keychain -d user
INFO [2023-08-22 09:28:58.44]: ▸ "/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db"
DEBUG [2023-08-22 09:28:58.44]: Installing WWDR Cert: curl -f -o /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG6.cer20230822-4860-g0fnn1 https://www.apple.com/certificateauthority/AppleWWDRCAG6.cer && security import /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/AppleWWDRCAG6.cer20230822-4860-g0fnn1 -k /Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db
INFO [2023-08-22 09:28:58.48]: ▸ 1 certificate imported.
INFO [2023-08-22 09:28:58.48]: ▸ 100 794 100 794 0 0 46278 0 --:--:-- --:--:-- --:--:-- 61076
ERROR [2023-08-22 09:28:58.49]: There are no local code signing identities found.
You can run `security find-identity -v -p codesigning fastlane_tmp_keychain` to get this output.
This Stack Overflow thread has more information: https://stackoverflow.com/q/35390072/774.
(Check in Keychain Access for an expired WWDR certificate: https://stackoverflow.com/a/35409835/774 has more info.)
INFO [2023-08-22 09:28:58.52]: $ security import /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/d20230822-4860-mhm6nn/certs/distribution/MYCERT.cer -k '/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db' -P ******** -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productbuild -T /usr/bin/productsign
INFO [2023-08-22 09:28:58.57]: ▸ 1 certificate imported.
INFO [2023-08-22 09:28:58.58]: Setting key partition list... (this can take a minute if there are a lot of keys installed)
INFO [2023-08-22 09:28:58.58]: $ security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k ******** /Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db 1> /dev/null
ERROR [2023-08-22 09:28:58.60]: security: SecItemCopyMatching: The specified item could not be found in the keychain.
INFO [2023-08-22 09:28:58.60]: $ security import /var/folders/bj/_wv5xt3j6pj_k9t_v0lxc3q80000gn/T/d20230822-4860-mhm6nn/certs/distribution/MYCERT.p12 -k '/Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db' -P ******** -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productbuild -T /usr/bin/productsign
INFO [2023-08-22 09:28:58.65]: ▸ 1 key imported.
INFO [2023-08-22 09:28:58.65]: Setting key partition list... (this can take a minute if there are a lot of keys installed)
INFO [2023-08-22 09:28:58.65]: $ security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k ******** /Users/gitlab/Library/Keychains/fastlane_tmp_keychain-db 1> /dev/null
+-------------------+-----------------------------------------------------------+
| Installed Certificate |
+-------------------+-----------------------------------------------------------+
| User ID | TEAM_ID |
| Common Name | Apple Distribution: My Company (TEAM_ID) |
| Organisation Unit | TEAM_ID |
| Organisation | My Company |
| Country | US |
| Start Datetime | 2023-06-29 13:44:12 UTC |
| End Datetime | 2024-06-28 13:44:11 UTC |
+-------------------+-----------------------------------------------------------+
INFO [2023-08-22 09:28:58.68]: Installing provisioning profile...
WARN [2023-08-22 09:28:58.81]: Setting environment variable 'sigh_com.my.app_appstore' to 'ef86d247-9c4a-4343-bd10-08e4390e9b9f'
WARN [2023-08-22 09:28:58.81]: Setting environment variable 'sigh_com.my.app_appstore_team-id' to 'TEAM_ID'
WARN [2023-08-22 09:28:58.81]: Setting environment variable 'sigh_com.my.app_appstore_certificate-name' to 'Apple Distribution: My Company (TEAM_ID)'
WARN [2023-08-22 09:28:58.81]: Setting environment variable 'sigh_com.my.app_appstore_profile-name' to 'match AppStore com.my.app'
WARN [2023-08-22 09:28:58.81]: Setting environment variable 'sigh_com.my.app_appstore_profile-path' to '/Users/gitlab/Library/MobileDevice/Provisioning Profiles/ef86d247-9c4a-4343-bd10-08e4390e9b9f.mobileprovision'
INFO [2023-08-22 09:28:58.81]: Installing provisioning profile...
WARN [2023-08-22 09:28:58.87]: Setting environment variable 'sigh_com.my.app.pushextension_appstore' to '15185901-dbb6-4355-8573-2c584cfb5d24'
WARN [2023-08-22 09:28:58.87]: Setting environment variable 'sigh_com.my.app.pushextension_appstore_team-id' to 'TEAM_ID'
WARN [2023-08-22 09:28:58.87]: Setting environment variable 'sigh_com.my.app.pushextension_appstore_certificate-name' to 'Apple Distribution: My Company (TEAM_ID)'
WARN [2023-08-22 09:28:58.87]: Setting environment variable 'sigh_com.my.app.pushextension_appstore_profile-name' to 'match AppStore com.my.app Push'
WARN [2023-08-22 09:28:58.87]: Setting environment variable 'sigh_com.my.app.pushextension_appstore_profile-path' to '/Users/gitlab/Library/MobileDevice/Provisioning Profiles/15185901-dbb6-4355-8573-2c584cfb5d24.mobileprovision'
+---------------------+------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| Installed Provisioning Profile |
+---------------------+------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| Parameter | Environment Variable | Value |
+---------------------+------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| App Identifier | | com.my.app |
| Type | | appstore |
| Platform | | ios |
| Profile UUID | sigh_com.my.app_appstore | ef86d247-9c4a-4343-bd10-08e4390e9b9f |
| Profile Name | sigh_com.my.app_appstore_profile-name | match AppStore com.my.app |
| Profile Path | sigh_com.my.app_appstore_profile-path | /Users/gitlab/Library/MobileDevice/Provisioning Profiles/ef86d247-9c4a-4343-bd10-08e4390e9b9f.mobileprovision |
| Development Team ID | sigh_com.my.app_appstore_team-id | TEAM_ID |
| Certificate Name | sigh_com.my.app_appstore_certificate-name | Apple Distribution: My Company (TEAM_ID) |
+---------------------+------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
+---------------------+--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| Installed Provisioning Profile |
+---------------------+--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| Parameter | Environment Variable | Value |
+---------------------+--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| App Identifier | | com.my.app.pushextension |
| Type | | appstore |
| Platform | | ios |
| Profile UUID | sigh_com.my.app.pushextension_appstore | 15185901-dbb6-4355-8573-2c584cfb5d24 |
| Profile Name | sigh_com.my.app.pushextension_appstore_profile-name | match AppStore com.my.app Push |
| Profile Path | sigh_com.my.app.pushextension_appstore_profile-path | /Users/gitlab/Library/MobileDevice/Provisioning Profiles/15185901-dbb6-4355-8573-2c584cfb5d24.mobileprovision |
| Development Team ID | sigh_com.my.app.pushextension_appstore_team-id | TEAM_ID |
| Certificate Name | sigh_com.my.app.pushextension_appstore_certificate-name | Apple Distribution: My Company (TEAM_ID) |
+---------------------+--------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
INFO [2023-08-22 09:28:58.87]: All required keys, certificates and provisioning profiles are installed 🙌
INFO [2023-08-22 09:28:58.92]: Setting Provisioning Profile type to 'app-store'
Finally, the gym command fails because the provisioning profile is not found:
INFO [2023-08-22 09:29:01.48]: -----------------
INFO [2023-08-22 09:29:01.48]: --- Step: gym ---
INFO [2023-08-22 09:29:01.48]: -----------------
DEBUG [2023-08-22 09:29:01.49]: Merging provisioning profile mappings
DEBUG [2023-08-22 09:29:01.49]: -------------------------------------
DEBUG [2023-08-22 09:29:01.49]: Primary provisioning profile mapping:
DEBUG [2023-08-22 09:29:01.49]: {}
DEBUG [2023-08-22 09:29:01.49]: Secondary provisioning profile mapping:
DEBUG [2023-08-22 09:29:01.49]: {:"com.my.app"=>"match AppStore com.my.app", :"com.my.app.pushextension"=>"match AppStore com.my.app Push"}
DEBUG [2023-08-22 09:29:01.49]: Resulting in the following mapping:
DEBUG [2023-08-22 09:29:01.49]: {:"com.my.app"=>"match AppStore com.my.app", :"com.my.app.pushextension"=>"match AppStore com.my.app Push"}
INFO [2023-08-22 09:29:01.49]: Successfully loaded '/Users/gitlab/builds/my-company/my-app/ios/App/fastlane/Gymfile' 📄
+---------------------+---------------------+
| Detected Values from './fastlane/Gymfile' |
+---------------------+---------------------+
| scheme | App |
| output_directory | ./builds |
| output_name | app-release |
+---------------------+---------------------+
WARN [2023-08-22 09:29:01.51]: Resolving Swift Package Manager dependencies...
INFO [2023-08-22 09:29:01.51]: $ xcodebuild -resolvePackageDependencies -workspace ./App.xcworkspace -scheme App
INFO [2023-08-22 09:29:01.89]: ▸ Command line invocation:
INFO [2023-08-22 09:29:01.89]: ▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./App.xcworkspace -scheme App
INFO [2023-08-22 09:29:01.89]: ▸ User defaults from command line:
INFO [2023-08-22 09:29:01.89]: ▸ IDEPackageSupportUseBuiltinSCM = YES
INFO [2023-08-22 09:29:02.32]: ▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:
INFO [2023-08-22 09:29:02.32]: ▸ { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:0000FE00-D0DCA5BBC4C2C1CD }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:C43AD5FA-82A0-49CE-9388-FFDE8F9F8BE4, OS:16.2, name:iPad (10th generation) }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:379D8E72-DAA5-41BB-BA2C-E83104A726DF, OS:16.2, name:iPad Air (5th generation) }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:24126EC5-E610-4CF1-AC43-A6CFE16EAD99, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:2500D4C0-F093-4E14-ABB9-30A3B8067748, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:8991541F-21B9-485C-8B71-C51D157EF7E4, OS:16.2, name:iPad mini (6th generation) }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:F7E6163F-D5D5-4DE9-965D-15A04EA75709, OS:16.2, name:iPhone 14 }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:9BE7234B-A666-4AE5-AE0C-A16A1B5B3BE0, OS:16.2, name:iPhone 14 Plus }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:17FDB69E-1B0A-4654-A9DE-FE328AD4F426, OS:16.2, name:iPhone 14 Pro }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:866A66FA-F9BA-4A4D-8700-AD2B563A3C71, OS:16.2, name:iPhone 14 Pro Max }
INFO [2023-08-22 09:29:02.32]: ▸ { platform:iOS Simulator, id:2FB0C580-2771-47A0-AF74-A3D462ACCBD7, OS:16.2, name:iPhone SE (3rd generation) }
INFO [2023-08-22 09:29:02.32]: ▸ resolved source packages:
INFO [2023-08-22 09:29:02.34]: $ xcodebuild -showBuildSettings -workspace ./App.xcworkspace -scheme App
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:0000FE00-D0DCA5BBC4C2C1CD }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:C43AD5FA-82A0-49CE-9388-FFDE8F9F8BE4, OS:16.2, name:iPad (10th generation) }
{ platform:iOS Simulator, id:379D8E72-DAA5-41BB-BA2C-E83104A726DF, OS:16.2, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:24126EC5-E610-4CF1-AC43-A6CFE16EAD99, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:2500D4C0-F093-4E14-ABB9-30A3B8067748, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:8991541F-21B9-485C-8B71-C51D157EF7E4, OS:16.2, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:F7E6163F-D5D5-4DE9-965D-15A04EA75709, OS:16.2, name:iPhone 14 }
{ platform:iOS Simulator, id:9BE7234B-A666-4AE5-AE0C-A16A1B5B3BE0, OS:16.2, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:17FDB69E-1B0A-4654-A9DE-FE328AD4F426, OS:16.2, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:866A66FA-F9BA-4A4D-8700-AD2B563A3C71, OS:16.2, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:2FB0C580-2771-47A0-AF74-A3D462ACCBD7, OS:16.2, name:iPhone SE (3rd generation) }
WARN [2023-08-22 09:29:05.35]: Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
2023-08-22 09:29:05.493 xcodebuild[5004:11959] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:0000FE00-D0DCA5BBC4C2C1CD }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:C43AD5FA-82A0-49CE-9388-FFDE8F9F8BE4, OS:16.2, name:iPad (10th generation) }
{ platform:iOS Simulator, id:379D8E72-DAA5-41BB-BA2C-E83104A726DF, OS:16.2, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:24126EC5-E610-4CF1-AC43-A6CFE16EAD99, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:2500D4C0-F093-4E14-ABB9-30A3B8067748, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:8991541F-21B9-485C-8B71-C51D157EF7E4, OS:16.2, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:F7E6163F-D5D5-4DE9-965D-15A04EA75709, OS:16.2, name:iPhone 14 }
{ platform:iOS Simulator, id:9BE7234B-A666-4AE5-AE0C-A16A1B5B3BE0, OS:16.2, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:17FDB69E-1B0A-4654-A9DE-FE328AD4F426, OS:16.2, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:866A66FA-F9BA-4A4D-8700-AD2B563A3C71, OS:16.2, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:2FB0C580-2771-47A0-AF74-A3D462ACCBD7, OS:16.2, name:iPhone SE (3rd generation) }
2023-08-22 09:29:08.148 xcodebuild[5012:12039] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
DEBUG [2023-08-22 09:29:08.18]: Parsing project file '/Users/gitlab/builds/my-company/my-app/ios/App/App.xcodeproj' to find selected provisioning profiles
DEBUG [2023-08-22 09:29:08.18]: Finding provision profiles for 'Release'
DEBUG [2023-08-22 09:29:08.21]: Merging provisioning profile mappings
DEBUG [2023-08-22 09:29:08.21]: -------------------------------------
DEBUG [2023-08-22 09:29:08.21]: Primary provisioning profile mapping:
DEBUG [2023-08-22 09:29:08.21]: {:"com.my.app"=>"match AppStore com.my.app", :"com.my.app.pushextension"=>"match AppStore com.my.app Push"}
DEBUG [2023-08-22 09:29:08.21]: Secondary provisioning profile mapping:
DEBUG [2023-08-22 09:29:08.21]: {}
DEBUG [2023-08-22 09:29:08.21]: Resulting in the following mapping:
DEBUG [2023-08-22 09:29:08.21]: {:"com.my.app"=>"match AppStore com.my.app", :"com.my.app.pushextension"=>"match AppStore com.my.app Push"}
INFO [2023-08-22 09:29:08.21]: Detected provisioning profile mapping: {:"com.my.app"=>"match AppStore com.my.app", :"com.my.app.pushextension"=>"match AppStore com.my.app Push"}
+-------------------------------------------------------------------------+-----------------------------------------------------------+
| Summary for gym 2.214.0 |
+-------------------------------------------------------------------------+-----------------------------------------------------------+
| export_method | app-store |
| export_options.provisioningProfiles.com.my.app | match AppStore com.my.app |
| export_options.provisioningProfiles.com.my.app.pushextension | match AppStore com.my.app Push |
| workspace | ./App.xcworkspace |
| scheme | App |
| clean | false |
| output_directory | ./builds |
| output_name | app-release |
| silent | false |
| skip_package_ipa | false |
| skip_package_pkg | false |
| build_path | /Users/gitlab/Library/Developer/Xcode/Archives/2023-08-22 |
| result_bundle | false |
| buildlog_path | ~/Library/Logs/gym |
| destination | generic/platform=iOS |
| xcodebuild_formatter | xcpretty |
| build_timing_summary | false |
| skip_profile_detection | false |
| xcodebuild_command | xcodebuild |
| skip_package_dependencies_resolution | false |
| disable_package_automatic_updates | false |
| use_system_scm | false |
| xcode_path | /Applications/Xcode.app |
+-------------------------------------------------------------------------+-----------------------------------------------------------+
+--------------------------------------------------------------------------------------------------------------------+----------------------+
| Generated Build Command |
+--------------------------------------------------------------------------------------------------------------------+----------------------+
| Option | Value |
+--------------------------------------------------------------------------------------------------------------------+----------------------+
| set -o pipefail && | |
| xcodebuild | |
| -workspace ./App.xcworkspace | |
| -scheme App | |
| -destination | generic/platform=iOS |
| -archivePath /Users/gitlab/Library/Developer/Xcode/Archives/2023-08-22/app-release\ 2023-08-22\ 09.29.08.xcarchive | |
| archive | |
| | tee /Users/gitlab/Library/Logs/gym/App-App.log | |
| | xcpretty | |
+--------------------------------------------------------------------------------------------------------------------+----------------------+
INFO [2023-08-22 09:29:08.26]: $ set -o pipefail && xcodebuild -workspace ./App.xcworkspace -scheme App -destination 'generic/platform=iOS' -archivePath /Users/gitlab/Library/Developer/Xcode/Archives/2023-08-22/app-release\ 2023-08-22\ 09.29.08.xcarchive archive | tee /Users/gitlab/Library/Logs/gym/App-App.log | xcpretty
INFO [2023-08-22 09:29:13.31]: ▸ Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'App' from project 'App')
INFO [2023-08-22 09:29:13.31]: ▸ ** ARCHIVE FAILED **
Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'App' from project 'App')
** ARCHIVE FAILED **
ERROR [2023-08-22 09:29:13.53]: Exit status: 65
+---------------+-------------------------+
| Build environment |
+---------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.214.0 |
| export_method | app-store |
| sdk | iPhoneOS16.2.sdk |
+---------------+-------------------------+
INFO [2023-08-22 09:29:13.54]: ▸ /Users/gitlab/builds/my-company/my-app/ios/App/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'GoogleDataTransport' from project 'Pods')
INFO [2023-08-22 09:29:13.54]: ▸ /Users/gitlab/builds/my-company/my-app/ios/App/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'FirebaseCoreInternal' from project 'Pods')
INFO [2023-08-22 09:29:13.54]: ▸ /Users/gitlab/builds/my-company/my-app/ios/App/App.xcodeproj: error: No profiles for 'com.my.app.pushextension' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.my.app.pushextension'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'pushextension' from project 'App')
INFO [2023-08-22 09:29:13.54]: ▸ /Users/gitlab/builds/my-company/my-app/ios/App/App.xcodeproj: error: No profiles for 'com.my.app' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.my.app'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'App' from project 'App')
INFO [2023-08-22 09:29:13.54]: ▸ warning: Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'App' from project 'App')
INFO [2023-08-22 09:29:13.54]:
ERROR [2023-08-22 09:29:13.54]: ⬆️ Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
WARN [2023-08-22 09:29:13.54]: 📋 For the complete and more detailed error log, check the full log at:
WARN [2023-08-22 09:29:13.54]: 📋 /Users/gitlab/Library/Logs/gym/App-App.log
INFO [2023-08-22 09:29:13.54]:
ERROR [2023-08-22 09:29:13.54]: Looks like fastlane ran into a build/archive error with your project
ERROR [2023-08-22 09:29:13.54]: It's hard to tell what's causing the error, so we wrote some guides on how
ERROR [2023-08-22 09:29:13.54]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
ERROR [2023-08-22 09:29:13.54]: Before submitting an issue on GitHub, please follow the guide above and make
ERROR [2023-08-22 09:29:13.54]: sure your project is set up correctly.
ERROR [2023-08-22 09:29:13.54]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
ERROR [2023-08-22 09:29:13.54]: the full commands printed out in yellow in the above log.
ERROR [2023-08-22 09:29:13.54]: Make sure to inspect the output above, as usually you'll find more error information there
INFO [2023-08-22 09:29:13.54]:
WARN [2023-08-22 09:29:13.54]: Lane Context:
INFO [2023-08-22 09:29:13.54]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :KEYCHAIN_PATH=>"~/Library/Keychains/fastlane_tmp_keychain", :ORIGINAL_DEFAULT_KEYCHAIN=>"\"/Users/gitlab/Library/Keychains/login.keychain-db\"", :SIGH_PROFILE_TYPE=>"app-store", :MATCH_PROVISIONING_PROFILE_MAPPING=>{"com.my.app"=>"match AppStore com.my.app", "com.my.app.pushextension"=>"match AppStore com.my.app Push"}, :LATEST_TESTFLIGHT_BUILD_NUMBER=>21, :LATEST_TESTFLIGHT_VERSION=>"1.3.21", :BUILD_NUMBER=>"22"}
ERROR [2023-08-22 09:29:13.54]: Error building the application - see the log above
+------+--------------------------------+-------------+
| fastlane summary |
+------+--------------------------------+-------------+
| Step | Action | Time (in s) |
+------+--------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | setup_ci | 0 |
| 3 | is_ci | 0 |
| 4 | match | 2 |
| 5 | app_store_connect_api_key | 0 |
| 6 | latest_testflight_build_number | 0 |
| 7 | increment_build_number | 1 |
| 💥 | gym | 12 |
+------+--------------------------------+-------------+
Edited by Álvaro Morón