问题描述
当我运行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
快车道环境
? fastlane 环境?堆栈
键 | 价值 |
---|---|
操作系统 | 10.15.6 |
红宝石 | 2.7.2 |
打包机? | 真实 |
git | git 版本 2.24.3 (Apple Git-128) |
安装源 | ~/.gem/ruby/2.7.0/bin/fastlane |
主机 | Mac OS X 10.15.6 (19G2005) |
Ruby 库目录 | /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 文件:
`./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,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 插件:
未加载插件
加载宝石宝石 | 版本 |
---|---|
did_you_mean | 1.4.0 |
捆绑器 | 2.2.7 |
uri | 0.10.0 |
耙 | 13.0.3 |
CFPropertyList | 3.0.3 |
并发红宝石 | 1.1.8 |
i18n | 1.8.7 |
最小测试 | 5.14.3 |
线程安全 | 0.3.6 |
tzinfo | 1.2.9 |
主动支持 | 5.2.4.4 |
public_suffix | 4.0.6 |
可寻址 | 2.7.0 |
httpclient | 2.8.3 |
json | 2.5.1 |
algoliasearch | 1.27.5 |
工艺品 | 3.0.15 |
原子 | 0.1.3 |
aws-eventstream | 1.1.0 |
aws 分区 | 1.420.0 |
aws-sigv4 | 1.2.2 |
jmespath | 1.4.0 |
aws-sdk-core | 3.111.2 |
aws-sdk-kms | 1.41.0 |
aws-sdk-s3 | 1.87.0 |
巴博萨 | 1.0.4 |
克莱德 | 1.0.3 |
fuzzy_match | 2.0.4 |
午睡 | 1.1.0 |
netrc | 0.11.0 |
ffi | 1.14.2 |
ethon | 0.12.0 |
台风 | 1.4.0 |
cocoapods-core | 1.10.0.rc.1 |
cocoapods-deintegrate | 1.0.4 |
cocoapods-downloader | 1.4.0 |
cocoapods 插件 | 1.0.0 |
cocoapods-search | 1.0.0 |
cocoapods-trunk | 1.5.0 |
cocoapods-try | 1.2.0 |
colored2 | 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 |
digest-crc | 0.6.3 |
unf_ext | 0.0.7.7 |
unf | 0.1.4 |
域名 | 0.5.20190701 |
dotenv | 2.7.6 |
emoji_regex | 3.2.1 |
excon | 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 |
法拉第-cookie_jar | 0.0.7 |
faraday_middleware | 1.0.0 |
fastimage | 2.2.1 |
jwt | 2.2.2 |
备忘录 | 0.16.2 |
multi_json | 1.15.0 |
操作系统 | 1.1.1 |
签名 | 0.14.1 |
googleauth | 0.15.0 |
mini_mime | 1.0.2 |
超级 | 0.1.0 |
具有代表性 | 3.0.4 |
可重试 | 3.1.2 |
google-api-client | 0.38.0 |
rexml | 3.2.4 |
webrick | 1.7.0 |
google-apis-core | 0.2.1 |
google-apis-iamcredentials_v1 | 0.1.0 |
google-apis-storage_v1 | 0.1.0 |
google-cloud-env | 1.4.0 |
google-cloud-errors | 1.0.1 |
google-cloud-core | 1.5.0 |
google-cloud-storage | 1.30.0 |
mini_magick | 4.11.0 |
plist | 3.6.0 |
rubyzip | 2.3.0 |
安全 | 0.1.3 |
自然 | 2.2.1 |
simctl | 1.6.8 |
slack-notifier | 2.3.2 |
终端通知程序 | 2.0.0 |
unicode-display_width | 1.7.0 |
终端表 | 1.8.0 |
tty-screen | 0.8.1 |
tty-cursor | 0.7.1 |
tty-spinner | 0.9.3 |
word_wrap | 1.0.0 |
胭脂 | 2.0.7 |
xcpretty | 0.3.0 |
xcpretty-travis-formatter | 1.0.1 |
生成于: 2021-01-28
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)