工作生活

Fastlane

2019-07-03  本文已影响0人  taobao

一、Action

1、get_certificates 获取证书

fastlane cert -u cert@krausefx.com

会检查是否有可用的证书已经安装到机器上,只有当需要创建新证书的时,cert动作才会
1:创建一个私钥
2:创建一个签名请求
3:生成、下载、安装证书
4:导入所有生成的文件到你的钥匙串
cert动作永远不撤销存在的证书,如果不能创建新证书,会抛出异常,你需要撤销一个已经存在的证书,为新证书腾出空间

Fastfile写法:

lane :beta do
  cert
  sigh(force: true)
end

aaa

2、register_devices 注册设备

命名:fastlane run register_devices
参数详见:fastlane action register_devices
但是命令不支持hash模式,而devices参数必须是hash,故采用命令注册时,不能用devices参数。

Fastfile写法:

lane :regist_device do
    register_devices(
    {
        username: "330318747@qq.com",
        devices: {
            "iPad" => "4b6124c654c45a4f23a3819e03b0412fc0e1da6c"
        }
    }
    )
end
上一篇下一篇

猜你喜欢

热点阅读