sparkfabrik / ios-build-action

Build iOS project (.xcodeproj, .xcworkspace), export .ipa, optional upload to BrowserStack App Live.
MIT License
129 stars 23 forks source link

There are no local code signing identities found #27

Closed sunzhongliangde closed 6 months ago

sunzhongliangde commented 6 months ago

Hi! When I run a command on GitHub Action, it always tells me "There are no local code signing identities found",here is the output log:

[14:39:52]: Cloning remote git repo...
[14:39:52]: If cloning the repo takes too long, you can use the `clone_branch_directly` option in match.
[14:39:52]: Checking out branch master...
[14:39:52]: 🔓  Successfully decrypted certificates repo
[14:39:52]: Verifying that the certificate and profile are still valid on the Dev Portal...
[14:39:52]: Creating authorization token for App Store Connect API
[14:39:53]: Installing certificate...
[14:39:53]: There are no local code signing identities found.
You can run `security find-identity -v -p codesigning ios-build.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.)
[14:39:53]: Setting key partition list... (this can take a minute if there are a lot of keys installed)
[14:39:53]: security: SecItemCopyMatching: The specified item could not be found in the keychain.
[14:39:54]: Setting key partition list... (this can take a minute if there are a lot of keys installed)

+-----------------------------------------------------------------------------------------------------+
|                                        Installed Certificate                                        |
+-------------------+---------------------------------------------------------------------------------+
| User ID           | ***                                                                      |
| Common Name       | Apple Distribution: Shanghai ExFresh Logistics Technology Co., LTD (***) |
| Organisation Unit | ***                                                                      |
| Organisation      | Shanghai ExFresh Logistics Technology Co., LTD                                  |
| Country           | US                                                                              |
| Start Datetime    | 2024-02-20 11:58:47 UTC                                                         |
| End Datetime      | 2025-02-19 11:58:46 UTC                                                         |
+-------------------+---------------------------------------------------------------------------------+

[14:39:54]: Installing provisioning profile...

+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                          Installed Provisioning Profile                                                                           |
+---------------------+---------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| Parameter           | Environment Variable                        | Value                                                                                                         |
+---------------------+---------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| App Identifier      |                                             | com.qms.exfresh                                                                                               |
| Type                |                                             | adhoc                                                                                                         |
| Platform            |                                             | ios                                                                                                           |
| Profile UUID        | sigh_com.qms.exfresh_adhoc                  | 6ed6b377-d3e5-42da-a858-d08d1bba1e3a                                                                          |
| Profile Name        | sigh_com.qms.exfresh_adhoc_profile-name     | match AdHoc com.qms.exfresh                                                                                   |
| Profile Path        | sigh_com.qms.exfresh_adhoc_profile-path     | /Users/runner/Library/MobileDevice/Provisioning Profiles/6ed6b377-d3e5-42da-a858-d08d1bba1e3a.mobileprovision |
| Development Team ID | sigh_com.qms.exfresh_adhoc_team-id          | ***                                                                                                    |
| Certificate Name    | sigh_com.qms.exfresh_adhoc_certificate-name | Apple Distribution: Shanghai ExFresh Logistics Technology Co., LTD (***)                               |
+---------------------+---------------------------------------------+---------------------------------------------------------------------------------------------------------------+

[14:39:54]: All required keys, certificates and provisioning profiles are installed 🙌
[14:39:54]: Setting Provisioning Profile type to 'ad-hoc'
[14:39:54]: -----------------------
[14:39:54]: --- Step: build_app ---
[14:39:54]: -----------------------
[14:39:55]: Resolving Swift Package Manager dependencies...
[14:39:55]: $ xcodebuild -resolvePackageDependencies -workspace /Users/runner/work/QMS/QMS/QMSPad.xcworkspace -scheme QMSPad -configuration Release
[14:39:56]: ▸ Command line invocation:
[14:39:56]: ▸     /Applications/Xcode_14.2.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace /Users/runner/work/QMS/QMS/QMSPad.xcworkspace -scheme QMSPad -configuration Release
[14:39:56]: ▸ User defaults from command line:
[14:39:56]: ▸     IDEPackageSupportUseBuiltinSCM = YES
[14:40:00]: ▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[14:40:00]: ▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[14:40:00]: ▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[14:40:00]: ▸ { platform:iOS Simulator, id:2DE826BB-F[234](https://github.com/sunzhongliangde/QMS/actions/runs/7975216140/job/21772877404#step:3:235)-4EC6-B812-45E930F78E0D, OS:16.2, name:iPad (9th generation) }
[14:40:00]: ▸ { platform:iOS Simulator, id:2F5C1283-BA66-41C0-A59A-F5E5D0701AE3, OS:16.2, name:iPad (10th generation) }
[14:40:00]: ▸ { platform:iOS Simulator, id:0D497416-F150-4C2D-897C-BF247AD7049E, OS:16.2, name:iPad Air (4th generation) }
[14:40:00]: ▸ { platform:iOS Simulator, id:FB1CB14D-0D29-49A3-8CB6-6E3F63CBDE28, OS:16.2, name:iPad Air (5th generation) }
[14:40:00]: ▸ { platform:iOS Simulator, id:98EE6CEC-5680-4628-BC77-217D808F6501, OS:16.2, name:iPad Pro (9.7-inch) }
[14:40:00]: ▸ { platform:iOS Simulator, id:58FBDD28-435D-4E02-A8DD-779C5DD21245, OS:16.2, name:iPad Pro (11-inch) (3rd generation) }
[14:40:00]: ▸ { platform:iOS Simulator, id:3BAB5B0E-F341-4F71-B3DA-8B32B134D4E6, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
[14:40:00]: ▸ { platform:iOS Simulator, id:53420851-22C8-4CF9-B5B4-692618294222, OS:16.2, name:iPad Pro (12.9-inch) (5th generation) }
[14:40:00]: ▸ { platform:iOS Simulator, id:9CB64D8C-EE41-4A15-864C-3EA965EBF2D1, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
[14:40:00]: ▸ { platform:iOS Simulator, id:805FD4D4-8FD0-48E5-9E22-5B6DCC5AD161, OS:16.2, name:iPad mini (6th generation) }
[14:40:00]: ▸ resolved source packages: 
[14:40:00]: $ xcodebuild -showBuildSettings -workspace /Users/runner/work/QMS/QMS/QMSPad.xcworkspace -scheme QMSPad -configuration Release 2>&1
[14:40:03]: Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[14:40:06]: Detected provisioning profile mapping: {:"com.qms.exfresh"=>"match AdHoc com.qms.exfresh", :"com.qms.exfresh.zs"=>"qms_zs_distribute_adhoc"}

+--------------------------------------------------------------------------------------------------------------------+
|                                              Summary for gym 2.219.0                                               |
+--------------------------------------------------------+-----------------------------------------------------------+
| workspace                                              | /Users/runner/work/QMS/QMS/QMSPad.xcworkspace             |
| configuration                                          | Release                                                   |
| scheme                                                 | QMSPad                                                    |
| output_directory                                       | .                                                         |
| output_name                                            | build-7cf8004a427b5dae[308](https://github.com/sunzhongliangde/QMS/actions/runs/7975216140/job/21772877404#step:3:309)c9b47ea6a4578f683dead            |
| clean                                                  | true                                                      |
| export_method                                          | ad-hoc                                                    |
| export_team_id                                         | ***                                                |
| silent                                                 | true                                                      |
| export_options.provisioningProfiles.com.qms.exfresh    | match AdHoc com.qms.exfresh                               |
| export_options.provisioningProfiles.com.qms.exfresh.zs | qms_zs_distribute_adhoc                                   |
| skip_package_ipa                                       | false                                                     |
| skip_package_pkg                                       | false                                                     |
| build_path                                             | /Users/runner/Library/Developer/Xcode/Archives/2024-02-20 |
| result_bundle                                          | false                                                     |
| buildlog_path                                          | ~/Library/Logs/gym                                        |
| destination                                            | generic/platform=iOS                                      |
| xcodebuild_formatter                                   | xcbeautify                                                |
| 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_14.2.app                              |
+--------------------------------------------------------+-----------------------------------------------------------+

[14:40:10]: ▸ Clean Succeeded
[14:40:14]: ▸ ::warning file=/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj::The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'MBProgressHUD' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'SAMKeychain' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'SDWebImage' from project 'Pods')
[14:40:14]: ▸ ::warning file=/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj::The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'UMCCommonLog' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/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 'AFNetworking' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'MJRefresh' from project 'Pods')
[14:40:14]: ▸ ::warning file=/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj::The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'JSONModel' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/QMSPad.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 'QMSPad' from project 'QMSPad')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/QMSPad.xcodeproj: error: No profile for team '***' matching 'qms_zs_distribute_adhoc' found: Xcode couldn't find any provisioning profiles matching '***/qms_zs_distribute_adhoc'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'QMSPad' from project 'QMSPad')
[14:40:14]: ▸ ::warning file=/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj::The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'YYCache' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'TZImagePickerController' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'SVProgressHUD' from project 'Pods')
[14:40:14]: ▸ ::warning file=/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj::The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'UMPush' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/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 'UMCommon' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'Masonry' from project 'Pods')
[14:40:14]: ▸ ::warning file=/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj::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 'IQKeyboardManager' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'YYText' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'UMDevice' from project 'Pods')
[14:40:14]: ▸ ** ARCHIVE FAILED **
[14:40:14]: ▸ ::warning file=/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj::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 'Pods-QMSPad' from project 'Pods')
Clean Succeeded
Warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'MBProgressHUD' from project 'Pods')
/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'SAMKeychain' from project 'Pods')
/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'SDWebImage' from project 'Pods')
Warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'UMCCommonLog' from project 'Pods')
/Users/runner/work/QMS/QMS/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 'AFNetworking' from project 'Pods')
/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'MJRefresh' from project 'Pods')
Warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'JSONModel' from project 'Pods')
/Users/runner/work/QMS/QMS/QMSPad.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 'QMSPad' from project 'QMSPad')
/Users/runner/work/QMS/QMS/QMSPad.xcodeproj: error: No profile for team '***' matching 'qms_zs_distribute_adhoc' found: Xcode couldn't find any provisioning profiles matching '***/qms_zs_distribute_adhoc'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'QMSPad' from project 'QMSPad')
Warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'YYCache' from project 'Pods')
/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'TZImagePickerController' from project 'Pods')
/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'SVProgressHUD' from project 'Pods')
Warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'UMPush' from project 'Pods')
/Users/runner/work/QMS/QMS/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 'UMCommon' from project 'Pods')
/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'Masonry' from project 'Pods')
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 'IQKeyboardManager' from project 'Pods')
/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'YYText' from project 'Pods')
/Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'UMDevice' from project 'Pods')
** ARCHIVE FAILED **

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 'Pods-QMSPad' from project 'Pods')

[14:40:14]: Exit status: 65
[14:40:14]: 
[14:40:14]: Maybe the error shown is caused by using the wrong version of Xcode
[14:40:14]: Found multiple versions of Xcode in '/Applications/'
[14:40:14]: Make sure you selected the right version for your project
[14:40:14]: This build process was executed using '/Applications/Xcode_14.2.app'
[14:40:14]: If you want to update your Xcode path, either
[14:40:14]: 
[14:40:14]: - Specify the Xcode version in your Fastfile
[14:40:14]: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[14:40:14]: 
[14:40:14]: - Specify an absolute path to your Xcode installation in your Fastfile
[14:40:14]: ▸ xcode_select "/Applications/Xcode8.app"
[14:40:14]: 
[14:40:14]: - Manually update the path using
[14:40:14]: ▸ sudo xcode-select -s /Applications/Xcode.app
[14:40:14]: 

+----------------------------------------------+
|              Build environment               |
+---------------+------------------------------+
| xcode_path    | /Applications/Xcode_14.2.app |
| gym_version   | 2.219.0                      |
| export_method | ad-hoc                       |
| sdk           | iPhoneOS16.2.sdk             |
+---------------+------------------------------+

[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'Masonry' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/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 'IQKeyboardManager' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'YYText' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'UMDevice' from project 'Pods')
[14:40:14]: ▸ /Users/runner/work/QMS/QMS/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 'Pods-QMSPad' from project 'Pods')
[14:40:14]: 
[14:40:14]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[14:40:14]: 📋  For the complete and more detailed error log, check the full log at:
[14:40:14]: 📋  /Users/runner/Library/Logs/gym/QMSPad-QMSPad.log
[14:40:14]: 
[14:40:14]: Looks like fastlane ran into a build/archive error with your project
[14:40:14]: It's hard to tell what's causing the error, so we wrote some guides on how
[14:40:14]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[14:40:14]: Before submitting an issue on GitHub, please follow the guide above and make
[14:40:14]: sure your project is set up correctly.
[14:40:14]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[14:40:14]: the full commands printed out in yellow in the above log.
[14:40:14]: Make sure to inspect the output above, as usually you'll find more error information there
[14:40:14]: 
+------------------------------------------------------------------------------------------+
|                                       Lane Context                                       |
+------------------------------------+-----------------------------------------------------+
| DEFAULT_PLATFORM                   | ios                                                 |
| PLATFORM_NAME                      | ios                                                 |
| LANE_NAME                          | ios build                                           |
| KEYCHAIN_PATH                      | ~/Library/Keychains/ios-build.keychain              |
| ORIGINAL_DEFAULT_KEYCHAIN          | "/Users/runner/Library/Keychains/login.keychain-db" |
| SIGH_PROFILE_TYPE                  | ad-hoc                                              |
| MATCH_PROVISIONING_PROFILE_MAPPING | {"com.qms.exfresh"=>"match AdHoc com.qms.exfresh"}  |
+------------------------------------+-----------------------------------------------------+
[14:40:14]: Error building the application - see the log above

+------------------------------------------------+
|                fastlane summary                |
+------+---------------------------+-------------+
| Step | Action                    | Time (in s) |
+------+---------------------------+-------------+
| 1    | default_platform          | 0           |
| 2    | create_keychain           | 0           |
| 3    | cocoapods                 | 32          |
| 4    | app_store_connect_api_key | 0           |
| 5    | match                     | 2           |
| 💥   | build_app                 | 19          |
+------+---------------------------+-------------+

[14:40:14]: fastlane finished with errors

[!] Error building the application - see the log above
Error: The process '/bin/bash' failed with exit code 1

My workflow:

name: build
        uses: sparkfabrik/ios-build-action@v2.3.2
        with:
            upload-to-testflight: false
            increment-build-number: false
            build-pods: true
            pods-path: Podfile
            configuration: Release
            export-method: ad-hoc
            workspace-path: QMSPad.xcworkspace
            project-path: QMSPad.xcodeproj
            scheme: QMSPad
            output-path: build-${{ github.sha }}.ipa
            apple-key-id: ${{ secrets.APPLE_KEY_ID }}
            apple-key-issuer-id: ${{ secrets.APPLE_KEY_ISSUER_ID }}
            apple-key-content: ${{ secrets.APPLE_KEY_CONTENT }}
            team-id: ${{ secrets.TEAM_ID }}
            #team-name: ${{ secrets.TEAM_NAME }}
            match-password: ${{ secrets.MATCH_PASSWORD }}
            match-git-url: ${{ secrets.MATCH_GIT_URL }}
            match-git-basic-authorization: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
            match-build-type: adhoc
            browserstack-upload: false
            browserstack-username: ${{ secrets.BROWSERSTACK_USERNAME }}
            browserstack-access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
            fastlane-env: stage
            ios-app-id: com.qms.exfresh

Is there anyone else who can successfully run the GitHub action? I noticed that others have encountered the same problem as me, https://github.com/fastlane/fastlane/issues/21835, I'm not sure if this solution can solve this problem. Has anyone encountered the same problem as me

sunzhongliangde commented 6 months ago

This issue has now been resolved. I originally thought that using fastlane match would automatically change the code sign identity and provisioning profile of the project, but it won't. As long as it doesn't match, it will report an error; My project needs to package multiple APP-ID packages, so I added some code and asked Fastlane to help me fix it, and this problem was solved. I later used fastlane, and of course, I hope this library can also be added

    # update_code_signing_settings
    update_code_signing_settings(
      use_automatic_signing: false,
      path: ENV["PROJECT_PATH"],
      team_id: ENV["TEAM_ID"],
      bundle_identifier: ENV["IOS_APP_ID"],
      # code_sign_identity: "iPhone Distribution",
      profile_name: "match AdHoc #{ENV['IOS_APP_ID']}",
    )