使用fastlane / Jenkins构建时缺少临时配置文件功能

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

我正在尝试使用Jenking / fastlane设置自动化的iOS构建。使用fastlane match设置代码签名。但是,当詹金斯(Jenkins)运行工作并调用xcodebuild时,我得到:

[16:06:09]: [36m$ set -o pipefail && xcodebuild -workspace ./Runner.xcworkspace -scheme dev -configuration Release-dev -destination 'generic/platform=iOS' -archivePath /Users/Shared/Jenkins/Library/Developer/Xcode/Archives/2020-04-14/Runner\ 2020-04-14\ 16.06.09.xcarchive archive | tee /Users/Shared/Jenkins/Library/Logs/gym/Runner-dev.log | xcpretty[0m
[16:06:23]: ▸ [35m[31m❌  error: "Runner" requires a provisioning profile with the Push Notifications feature. Select a provisioning profile in the Signing & Capabilities editor. (in target 'Runner' from project 'Runner')[0m
[16:06:23]: ▸ [35m** ARCHIVE FAILED **[0m

不用说使用的配置文件确实包含所述功能(我已经在Developers门户中检查过。)>

我的快速文件(相关部分):

  private_lane :build_qa do
    UI.message("Building qa build...")
    sync_code_signing
    sync_code_signing(type: "adhoc", readonly: true)
    update_code_signing_settings(
      use_automatic_signing: false,
      path: "Runner.xcodeproj"
    )
    sh("cd ../..;
      flutter build ios --release --flavor dev --no-codesign"
    )
    build_ios_app(
      scheme: "dev",
      configuration: "Release-dev",
      output_name: "Runner.ipa"
    )
    update_code_signing_settings(
      use_automatic_signing: true,
      path: "Runner.xcodeproj"
    )
  end

match的摘要:

+-------------------------------------------------------------------------+-------------------------------------------------------------------+
|                                                           [32mSummary for gym 2.145.0[0m                                                           |
+-------------------------------------------------------------------------+-------------------------------------------------------------------+
| scheme                                                                  | dev                                                               |
| configuration                                                           | Release-dev                                                       |
| output_name                                                             | Runner                                                            |
| catalyst_platform                                                       | ios                                                               |
| export_method                                                           | ad-hoc                                                            |
| export_options.provisioningProfiles.com.flutter.example.track.dev       | match AdHoc com.flutter.example.track.dev                         |
| export_options.provisioningProfiles.com.flutter.example.track.prod      | match AdHoc com.flutter.example.track.prod                        |
| workspace                                                               | ./Runner.xcworkspace                                              |
| destination                                                             | generic/platform=iOS                                              |
| build_path                                                              | /Users/Shared/Jenkins/Library/Developer/Xcode/Archives/2020-05-05 |
| clean                                                                   | false                                                             |
| output_directory                                                        | .                                                                 |
| silent                                                                  | false                                                             |
| skip_package_ipa                                                        | false                                                             |
| result_bundle                                                           | false                                                             |
| buildlog_path                                                           | ~/Library/Logs/gym                                                |
| skip_profile_detection                                                  | false                                                             |
| skip_package_pkg                                                        | false                                                             |
| xcode_path                                                              | /Applications/Xcode.app                                           |
+-------------------------------------------------------------------------+-------------------------------------------------------------------+

我正在尝试使用Jenking / fastlane设置自动化的iOS构建。使用快速通道匹配设置了代码签名。但是,当詹金斯(Jenkins)运行作业并调用xcodebuild时,我得到:[16:06:09]:[...

ios jenkins fastlane
1个回答
0
投票

如果使用匹配来管理供应配置文件,则可以使用gym将它们强制设置在build_ios_app / export_options中,如下所示:

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