Github Action:找不到“iOS Development”签名证书。

3
相关问题在这里:https://github.com/yukiarrr/ios-build-action/issues/74 更新:我的项目中没有任何代码包含“iOS Development”。只有当我将字符串而非GitHub secret放在code-signing-identity上时,才会显示该单词,无论我输入什么字符串都是如此。
我正在使用Github Action上的ios-build-action@v1.5.0来自动化将Ionic项目部署到TestFlight的过程,但不知何故遇到了此错误。
新的配置文件已经生成并作为secret提供,我相信证书也是在构建过程中生成的。
有什么解决办法吗?可能会出现什么问题?
相关命令:
      - name: Publish as internal testing
        uses: yukiarrr/ios-build-action@v1.5.0
        with:
          project-path: ./platforms/ios/myproject.xcodeproj
          p12-base64: ${{ secrets.IOS_P12_BASE64 }}
          mobileprovision-base64: ${{ secrets.IOS_PROVISION_FILE }}
          code-signing-identity: Apple Development
          team-id: ${{ secrets.IOS_TEAM_ID }}

下面是相关日志,与该问题略有不同:
+--------------------------------------------------+-----------------------------------------------------------+
|                                           Summary for gym 2.205.2                                            |
+--------------------------------------------------+-----------------------------------------------------------+
| workspace                                        | ./platforms/ios/myproject.xcworkspace                      |
| configuration                                    | Release                                                   |
| scheme                                           | myproject                                                  |
| output_directory                                 | .                                                         |
| output_name                                      | output                                                    |
| clean                                            | true                                                      |
| export_method                                    | app-store                                                 |
| export_options.provisioningProfiles.com.myproject | myproject Github Action CI/CD                              |
| skip_profile_detection                           | false                                                     |
| destination                                      | generic/platform=iOS                                      |
| silent                                           | false                                                     |
| skip_package_ipa                                 | false                                                     |
| skip_package_pkg                                 | false                                                     |
| build_path                                       | /Users/runner/Library/Developer/Xcode/Archives/2022-04-28 |
| result_bundle                                    | false                                                     |
| buildlog_path                                    | ~/Library/Logs/gym                                        |
| xcodebuild_formatter                             | xcpretty                                                  |
| xcodebuild_command                               | xcodebuild                                                |
| skip_package_dependencies_resolution             | false                                                     |
| disable_package_automatic_updates                | false                                                     |
| use_system_scm                                   | false                                                     |
| xcode_path                                       | /Applications/Xcode_13.2.1.app                            |
+--------------------------------------------------+-----------------------------------------------------------+
[22:27:00]: $ set -o pipefail && xcodebuild -workspace ./platforms/ios/myproject.xcworkspace -scheme myproject -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/runner/Library/Developer/Xcode/Archives/2022-04-28/output\ 2022-04-28\ 22.27.00.xcarchive clean archive | tee /Users/runner/Library/Logs/gym/myproject-myproject.log | xcpretty
[22:27:06]: ▸ Clean Succeeded
[22:27:13]: ▸ ❌  error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "***" with a private key was found. (in target 'myproject' from project 'myproject')
[22:27:13]: ▸ ❌  error: Provisioning profile "myproject Github Action CI/CD" doesn't support the Push Notifications capability. (in target 'myproject' from project 'myproject')
[22:27:13]: ▸ ❌  error: Provisioning profile "myproject Github Action CI/CD" doesn't include the aps-environment entitlement. (in target 'myproject' from project 'myproject')
[22:27:13]: ▸ ** ARCHIVE FAILED **
▸ Clean Succeeded
❌  error: No certificate for team '***' matching '***' found: Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning. (in target 'myproject' from project 'myproject')
❌  error: Provisioning profile "myproject Github Action CI/CD" doesn't support the Push Notifications capability. (in target 'myproject' from project 'myproject')
❌  error: Provisioning profile "myproject Github Action CI/CD" doesn't include the aps-environment entitlement. (in target 'myproject' from project 'myproject')
** ARCHIVE FAILED **
[22:27:13]: Exit status: 65
[22:27:13]: 
[22:27:13]: Maybe the error shown is caused by using the wrong version of Xcode
[22:27:13]: Found multiple versions of Xcode in '/Applications/'
[22:27:13]: Make sure you selected the right version for your project
[22:27:13]: This build process was executed using '/Applications/Xcode_13.2.1.app'
[22:27:13]: If you want to update your Xcode path, either
[22:27:13]: 
[22:27:13]: - Specify the Xcode version in your Fastfile
[22:27:13]: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[22:27:13]: 
[22:27:13]: - Specify an absolute path to your Xcode installation in your Fastfile
[22:27:13]: ▸ xcode_select "/Applications/Xcode8.app"
[22:27:13]: 
[22:27:13]: - Manually update the path using
[22:27:13]: ▸ sudo xcode-select -s /Applications/Xcode.app
[22:27:13]: 
+---------------+--------------------------------+
|               Build environment                |
+---------------+--------------------------------+
| xcode_path    | /Applications/Xcode_13.2.1.app |
| gym_version   | 2.205.2                        |
| export_method | app-store                      |
| sdk           | iPhoneOS15.2.sdk               |
+---------------+--------------------------------+

1个回答

1

这个问题是由于iOS和Android上具有不同的应用程序ID,但在config.xml中没有将它们分开造成的。如果您遇到此问题,您可能需要检查您的应用程序ID,以查看它们在不同平台上是否一致。在我的情况下,iOS应用程序ID未正确应用,从而导致了这个问题。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接