在 github 操作上运行的 Fastlane 证书不包含错误配置文件的配置文件

问题描述 投票:0回答:1

所以我有一个 SwiftUI 应用程序,直到本周我有了一台新的工作计算机,然后我的 CI 设置突然崩溃了。

<work_dir>/AppName.xcodeproj: error: Provisioning profile "match AppStore APP_ID" doesn't include signing certificate "Apple Development: Personal Name (PERSONAL_TEAM_ID)". (in target 'AppName' from project 'AppName')

奇怪的是 fastlane 匹配在上一步中提取了正确的规定配置文件。

+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                  Installed Provisioning Profile                                                                                   |
+---------------------+-------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| Parameter           | Environment Variable                                        | Value                                                                                                         |
+---------------------+-------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
| App Identifier      |                                                             | APP_ID                                                                                                        |
| Type                |                                                             | appstore                                                                                                      |
| Platform            |                                                             | ios                                                                                                           |
| Profile UUID        | sigh_APP_ID_appstore                                        | UUID                                                                                                          |
| Profile Name        | sigh_APP_ID_appstore_profile-name                           | match AppStore APP_ID                                                                                         |
| Profile Path        | sigh_APP_ID_appstore_profile-path                           | /Users/runner/Library/MobileDevice/Provisioning Profiles/UUID.mobileprovision                                 |
| Development Team ID | sigh_APP_ID_appstore_team-id                                | WORK_TEAM_ID                                                                                                  |
| Certificate Name    | sigh_APP_ID_appstore_certificate-name                       | Apple Distribution: Company Name (WORK_TEAM_ID)                                                               |
+---------------------+-------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ 

我不明白为什么它不使用明确安装的配置文件。

快车道

  lane :beta do
    setup_ci if ENV['CI']
    api_key = app_store_connect_api_key(
      key_id: ENV["ASCAPI_KEY_ID"],
      issuer_id: ENV["ASCAPI_ISSUER_ID"],
      key_content: ENV["ASCAPI_KEY"],
      is_key_content_base64: true
    )
    increment_build_number(
      xcodeproj: "AppName.xcodeproj",
      build_number: ENV['BUILD_NUMBER']
    )
    match(type: "appstore", readonly: true)
    update_code_signing_settings(
      bundle_identifier: "app_id",
      use_automatic_signing: false,
      team_id: "WORK_TEAM_ID",
      targets: ["AppName"],
      profile_name: "match AppStore app_id"
    )
    update_code_signing_settings(
      bundle_identifier: "app_idTests",
      use_automatic_signing: false,
      team_id: "WORK_TEAM_ID",
      targets: ["appNameTests"],
      profile_name: "match AppStore app_idTests"
    )
    build_app(
      scheme: "app_name",
      export_method: "app-store",
      export_options: {
        provisioningProfiles: { 
          "app_id" => "match AppStore app_id",
          "app_idTests" => "match AppStore app_idTests"
        }
      }
    )
    upload_to_testflight(
      api_key: api_key,
      skip_waiting_for_build_processing: true
    )
  end
end 

我尝试在本地删除配置文件,从 fastlane 中删除它们,重新启动我的计算机,然后重新生成它们,但这也没有让我得到任何结果。

我已检查本地 xcode 中的配置文件是否设置为正确的应用程序商店配置文件,并且它显示为有效,并正在查找我的工作配置文件。

我不知道它从哪里获取我的个人配置文件。

xcode fastlane fastlane-match
1个回答
0
投票

您找到解决方案了吗?因为我现在正在经历这个。

© www.soinside.com 2019 - 2024. All rights reserved.