gpt4 book ai didi

ios - FaSTLane import_certificate 找不到文件

转载 作者:行者123 更新时间:2023-11-28 20:50:39 26 4
gpt4 key购买 nike

我正在尝试在 Github 上执行一个 lane 操作。

我有这条车道:

lane :debug do |values|

create_keychain(
name: "Keychain",
default_keychain: true,
unlock: true,
timeout: 3600,
lock_when_sleeps: true,
password: "Password"
)

puts `ls -ll`
puts `pwd`

import_certificate(
keychain_name: "Keychain",
certificate_path: "CERTIFICATE_DEV.cer"
)

命令 ls -ll 返回:

enter image description here

import_certificate() 失败并显示此错误消息:

[14:10:24]: --------------------------------
[14:10:24]: --- Step: import_certificate ---
[14:10:24]: --------------------------------
+---------------------------+-----------------------------------------------------+
| Lane Context |
+---------------------------+-----------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios debug |
| ORIGINAL_DEFAULT_KEYCHAIN | "/Users/runner/Library/Keychains/login.keychain-db" |
+---------------------------+-----------------------------------------------------+
[14:10:24]: Could not find file 'CERTIFICATE_DEV.cer'

如何导入我的证书?

最佳答案

有时,faSTLane 中的文件路径可能很棘手。我建议你传递证书的绝对路径。

import_certificate(
keychain_name: "Keychain",
certificate_path: File.absolute_path("CERTIFICATE_DEV.cer")
)

关于ios - FaSTLane import_certificate 找不到文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58750758/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com