1

当我运行gym 命令时,我得到了这个奇怪的错误。

[16:20:23]: ▸ Could not find rake-13.0.3 in any of the sources
[16:20:23]: ▸ Run `bundle install` to install missing gems.

这是完整的日志:

[16:20:09]: Setting Provisioning Profile type to 'ad-hoc'
[16:20:09]: -----------------
[16:20:09]: --- Step: gym ---
[16:20:09]: -----------------
[16:20:10]: Resolving Swift Package Manager dependencies...
[16:20:10]: $ xcodebuild -resolvePackageDependencies -workspace Runner.xcworkspace -scheme prod
[16:20:11]: ▸ Command line invocation:
[16:20:11]: ▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace Runner.xcworkspace -scheme prod
[16:20:14]: ▸ resolved source packages:
[16:20:14]: $ xcodebuild -showBuildSettings -workspace Runner.xcworkspace -scheme prod
[16:20:17]: Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[16:20:22]: Detected provisioning profile mapping: {:"com.example.app"=>"match AdHoc com.example.app", :"com.example.app.dev"=>"match AdHoc com.example.app.dev", :"com.example.app.red"=>"match AdHoc com.example.app.red"}

+-----------------------------------------------------------------+------------------------------------------------------------+
|                                                   Summary for gym 2.172.0                                                    |
+-----------------------------------------------------------------+------------------------------------------------------------+
| workspace                                                       | Runner.xcworkspace                                         |
| scheme                                                          | prod                                                       |
| output_directory                                                | ../build/ios/iphoneos                                      |
| output_name                                                     | Runner_adhoc_prod                                          |
| export_method                                                   | ad-hoc                                                     |
| export_options.provisioningProfiles.com.example.app             | match AdHoc com.example.app                                |
| export_options.provisioningProfiles.com.example.app.dev         | match AdHoc com.example.app.dev                            |
| export_options.provisioningProfiles.com.example.app.red         | match AdHoc com.example.app.red                            |
| destination                                                     | generic/platform=iOS                                       |
| build_path                                                      | /Users/long1eu/Library/Developer/Xcode/Archives/2021-01-28 |
| clean                                                           | false                                                      |
| silent                                                          | false                                                      |
| skip_package_ipa                                                | false                                                      |
| skip_package_pkg                                                | false                                                      |
| result_bundle                                                   | false                                                      |
| buildlog_path                                                   | ~/Library/Logs/gym                                         |
| skip_profile_detection                                          | false                                                      |
| skip_package_dependencies_resolution                            | false                                                      |
| disable_package_automatic_updates                               | false                                                      |
| use_system_scm                                                  | false                                                      |
| xcode_path                                                      | /Applications/Xcode.app                                    |
+-----------------------------------------------------------------+------------------------------------------------------------+

[16:20:22]: $ set -o pipefail && xcodebuild -workspace Runner.xcworkspace -scheme prod -destination 'generic/platform=iOS' -archivePath /Users/long1eu/Library/Developer/Xcode/Archives/2021-01-28/Runner_adhoc_prod\ 2021-01-28\ 16.20.22.xcarchive archive | tee /Users/long1eu/Library/Logs/gym/Runner_prod-prod.log | xcpretty
[16:20:23]: ▸ Could not find rake-13.0.3 in any of the sources
[16:20:23]: ▸ Run `bundle install` to install missing gems.
[16:38:06]: Exit status: 7

+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.172.0                 |
| export_method | ad-hoc                  |
| sdk           | iPhoneOS14.4.sdk        |
+---------------+-------------------------+

[16:38:06]: ▸ Command line invocation:
[16:38:06]: ▸     
[16:38:06]: 
[16:38:06]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[16:38:06]:   For the complete and more detailed error log, check the full log at:
[16:38:06]:   /Users/long1eu/Library/Logs/gym/Runner_prod-prod.log
[16:38:06]: 
[16:38:06]: Looks like fastlane ran into a build/archive error with your project
[16:38:06]: It's hard to tell what's causing the error, so we wrote some guides on how
[16:38:06]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[16:38:06]: Before submitting an issue on GitHub, please follow the guide above and make
[16:38:06]: sure your project is set up correctly.
[16:38:06]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[16:38:06]: the full commands printed out in yellow in the above log.
[16:38:06]: Make sure to inspect the output above, as usually you'll find more error information there

快车道环境

快车道环境

钥匙 价值
操作系统 10.15.6
红宝石 2.7.2
打包机? 真的
吉特 git 版本 2.24.3 (Apple Git-128)
安装源 ~/.gem/ruby/2.7.0/bin/fastlane
主持人 Mac OS X 10.15.6 (19G2005)
红宝石库目录 /usr/local/Cellar/ruby@2.7/2.7.2/lib
OpenSSL 版本 OpenSSL 1.1.1i 2020 年 12 月 8 日
包含 错误的
是自制的 错误的
通过 Fabric.app 安装 错误的
Xcode 路径 /Applications/Xcode.app/Contents/Developer/
Xcode 版本 12.4

系统语言环境

错误
找不到带有 UTF8 的语言环境

快车道文件:

`./fastlane/Fastfile`
# frozen_string_literal: true

update_fastlane
default_platform(:ios)

BUILD_OUTPUT_ = '../build/ios/iphoneos'
APPSTORE_CONNECT_API_KEY_PATH_ = '../private/key.json'

def setup_ci(type, env)
  keychain_name = 'CI'
  keychain_password = ENV['MATCH_PASSWORD']

  create_keychain(
      name: keychain_name,
      password: keychain_password,
      default_keychain: true,
      unlock: true,
      timeout: 3600,
      lock_when_sleeps: false
  )
  match(
      type: type,
      force_for_new_devices: true,
      keychain_name: keychain_name,
      keychain_password: keychain_password,
      api_key_path: APPSTORE_CONNECT_API_KEY_PATH_
  )
  sh('security list-keychains -d user')
  sh('security default-keychain -d user')
  sh("security find-identity -v -p codesigning #{keychain_name}")

  app_identifier = "com.example.app#{env == "prod" ? "" : ".#{env}"}"

  team_id = ENV["sigh_#{app_identifier}_#{type}_team-id"]
  identity = "Apple Distribution: ORG (#{team_id})"
  profile = ENV["sigh_#{app_identifier}_#{type}"]
  profile_name = ENV["sigh_#{app_identifier}_#{type}_profile-name"]

  update_code_signing_settings(
      use_automatic_signing: false,
      path: 'Runner.xcodeproj',
      team_id: team_id,
      profile_uuid: profile,
      profile_name: profile_name,
      code_sign_identity: identity
  )
end

def build(type, export_method, env)
  cocoapods
  if is_ci
    setup_ci(type, env)
  else
    match(type: type, force_for_new_devices: true, api_key_path: APPSTORE_CONNECT_API_KEY_PATH_)
  end

  gym(
      workspace: 'Runner.xcworkspace',
      scheme: env,
      output_directory: BUILD_OUTPUT_,
      output_name: "Runner_#{type}_#{env}.ipa",
      export_method: export_method
  )
end

platform :ios do
  desc 'Build ipa for Firebase App Distribution'
  lane :build_firebase do |values|
    build('adhoc', 'ad-hoc', values[:env])
  end

  desc 'Build ipa for App Store and upload'
  lane :build_appstore do |values|
    build('appstore', 'app-store', values[:env])
    upload_to_app_store(
      run_precheck_before_submit: false,
      api_key_path: APPSTORE_CONNECT_API_KEY_PATH_
    )
  end

  desc 'Add new device'
  lane :register do |values|
    register_devices(
      devices: {
        values[:name] => values[:udid],
      },
      api_key_path: APPSTORE_CONNECT_API_KEY_PATH_
    )
  end
end

`./fastlane/Appfile`
apple_id("username@gmail.com")
team_id("TEAM_ID")

快车道宝石

宝石 版本 更新状态
快车道 2.172.0 ✅ 最新

加载的 fastlane 插件:

未加载任何插件

加载的宝石
宝石 版本
你的意思 1.4.0
打包机 2.2.7
乌里 0.10.0
13.0.3
CFPropertyList 3.0.3
并发红宝石 1.1.8
i18n 1.8.7
小测试 5.14.3
线程安全 0.3.6
资讯 1.2.9
积极支持 5.2.4.4
public_suffix 4.0.6
可寻址 2.7.0
httpclient 2.8.3
json 2.5.1
阿尔戈利亚搜索 1.27.5
神器 3.0.15
原子 0.1.3
aws-事件流 1.1.0
aws-分区 1.420.0
aws-sigv4 1.2.2
jmespath 1.4.0
aws-sdk-核心 3.111.2
aws-sdk-kms 1.41.0
aws-sdk-s3 1.87.0
巴博萨 1.0.4
克莱德 1.0.3
模糊匹配 2.0.4
小憩 1.1.0
网管 0.11.0
1.14.2
民族精神 0.12.0
台风 1.4.0
Cocoapods 核心 1.10.0.rc.1
cocoapods-deintegrate 1.0.4
cocoapods 下载器 1.4.0
cocoapods 插件 1.0.0
cocoapods-搜索 1.0.0
可可足类树干 1.5.0
Cocoapods-尝试 1.2.0
彩色2 3.1.2
逃脱 0.0.4
四冲 2.3.1
gh_inspector 1.1.3
莫利尼略 0.6.6
红宝石男子气概 1.4.0
纳奈莫 0.3.0
xcodeproj 1.19.0
可可足类 1.10.0.rc.1
有色 1.2
高线 1.7.10
指挥官快车道 4.4.6
声明性的 0.0.20
声明式选项 0.1.0
摘要-CRC 0.6.3
unf_ext 0.0.7.7
联合国基金会 0.1.4
域名 0.5.20190701
dotenv 2.7.6
emoji_regex 3.2.1
前任 0.78.1
faraday-net_http 1.0.1
多篇文章 2.0.0
ruby2_keywords 0.0.4
法拉第 1.3.0
http-cookie 1.0.3
法拉第饼干罐 0.0.7
faraday_middleware 1.0.0
快速图像 2.2.1
jwt 2.2.2
备忘录 0.16.2
multi_json 1.15.0
操作系统 1.1.1
印章 0.14.1
谷歌认证 0.15.0
迷你哑剧 1.0.2
超级 0.1.0
可代表的 3.0.4
可重试 3.1.2
谷歌 api 客户端 0.38.0
rexml 3.2.4
网砖 1.7.0
谷歌 apis 核心 0.2.1
google-apis-iamcredentials_v1 0.1.0
google-apis-storage_v1 0.1.0
谷歌云环境 1.4.0
谷歌云错误 1.0.1
谷歌云核心 1.5.0
谷歌云存储 1.30.0
mini_magick 4.11.0
列表 3.6.0
rubyzip 2.3.0
安全 0.1.3
自然 2.2.1
simctl 1.6.8
松弛通知器 2.3.2
终端通知器 2.0.0
unicode-display_width 1.7.0
终端表 1.8.0
tty-屏幕 0.8.1
tty 光标 0.7.1
tty-spinner 0.9.3
word_wrap 1.0.0
胭脂 2.0.7
漂亮的 0.3.0
xcpretty-travis-格式化程序 1.0.1

生成于: 2021-01-28

4

0 回答 0