【问题标题】:Fastlane import_certificate could not find fileFastlane import_certificate 找不到文件
【发布时间】:2020-03-04 03:41:14
【问题描述】:

我正在尝试在 Github 上执行通道操作。

我有这条车道:

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返回这个:

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'

如何导入我的证书?

【问题讨论】:

    标签: ios ruby continuous-integration fastlane github-actions


    【解决方案1】:

    有时,fastlane 中的文件路径可能很棘手。建议你通过证书的绝对路径。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-14
      • 1970-01-01
      • 1970-01-01
      • 2018-08-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多