8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

在 CI 中测试 iOS 应用时出现“无签名证书”错误

Dpedrinha 2月前

31 0

我有一个针对 iOS 应用运行测试的 GitHub 操作。该操作如下所示:名称:Testson:[pull_request]jobs:build:runs-on:macos-latest 步骤:- 使用:actions/check...

我有一个针对 iOS 应用运行测试的 GitHub 操作。该操作如下所示:

name: Tests
on: [pull_request]
jobs:
  build:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2
      - name: Run tests
        run: xcodebuild clean test -workspace "xxx.xcworkspace" -scheme "xxx" -destination "platform=iOS Simulator,name=iPhone 12 Pro,OS=latest" | xcpretty && exit ${PIPESTATUS[0]}

最近我开始收到此错误,阻止 CI 运行:

    No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "xxxx" with a private key was found.
    No profiles for 'com.xxx.xxx.xxx-iosUITests.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.xxx.xxx.xxxUITests.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
    No profiles for 'xxx.xxx.xxx' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'xxx.xxx.xxx'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
    Testing cancelled because the build failed.

我以前从未提供过签名证书来在 CI 中运行测试。我 xcodebuild 在本地运行时遇到同样的错误,但我可以在 Xcode 内部顺利运行测试。我该如何修复 CI?

帖子版权声明 1、本帖标题:在 CI 中测试 iOS 应用时出现“无签名证书”错误
    本站网址:http://xjnalaquan.com/
2、本网站的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
3、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
4、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
5、站长邮箱:yeweds@126.com 除非注明,本帖由Dpedrinha在本站《ios》版块原创发布, 转载请注明出处!
最新回复 (0)
  • 经过多次尝试和错误,我发现更改我测试的 iPhone 的名称可以解决问题。现在的操作如下:

    name: Test
    on: [pull_request]
    jobs:
      test:
        runs-on: macos-13
        steps:
        - uses: actions/checkout@v4
        - uses: maxim-lobanov/setup-xcode@v1
          with:
            xcode-version: latest-stable
        - name: Run Tests
          run: xcodebuild test -workspace "xxx.xcworkspace" -scheme "xxx" -destination "name=iPhone 15 Pro" | xcpretty && exit ${PIPESTATUS[0]}
    

    但唯一重要的变化是从 iPhone 12 变成 iPhone 15。

返回
作者最近主题: