Fastlane 找不到操作或通道“get_certificates”

问题描述 投票:0回答:1

我有一个在 gitlab 中自动化的反应原生应用程序,直到昨天才开始显示此错误:

Could not find action or lane 'get_certificates'. Check out the README for more details: https://github.com/fastlane/fastlane/tree/master/fastlane
+------+--------------------------+-------------+
|               fastlane summary                |
+------+--------------------------+-------------+
| Step | Action                   | Time (in s) |
+------+--------------------------+-------------+
| 1    | default_platform         | 0           |
| 2    | unlock_keychain          | 0           |
| 3    | increment_version_number | 0           |
| 4    | increment_build_number   | 0           |
+------+--------------------------+-------------+

这是快速文件代码:

require 'dotenv' 
Dotenv.load ".env"

default_platform(:ios)

platform :ios do

    desc "Push a new beta build to TestFlight"
    lane :build_develop do
        $appBundleIdentifierDev = $identifier
        $workspaceName = $workspace
        $ipaFilename = $filename
        $appleUsername = $username
        $url_repo = $repo

        unlock_keychain(
            path: "login.keychain-db",
            password: ENV['KEYCHAIN_PASS']
        )

        increment_version_number(
            version_number: ENV['APP_VERSION_NAME']
        )

        increment_build_number(
            build_number: ENV['APP_VERSION_CODE']
        )

        get_certificates(
            team_id: $teamid
        )

        gym(
            export_method: 'app-store',
            scheme: $scheme,
            configuration: $configuration,
            clean: true,
            include_bitcode: false,
            workspace: $workspaceName,
            output_name: $ipaFilename,
            xcargs: "ARCHIVE=YES",
            output_directory: "build",
            export_xcargs: "-allowProvisioningUpdates",
        )
    end
end

过去几天我没有更改任何代码,现在它突然不起作用了。对正在发生的事情有什么想法吗?

ios react-native fastlane
1个回答
0
投票

尝试重新安装Fastlane:

  • 如果您使用 Homebrew 安装 Fastlane:

      brew cask uninstall fastlane
      brew uninstall fastlane
    
      brew install fastlane
    
  • 如果您使用 RubyGems 安装 Fastlane:

      sudo gem uninstall fastlane
      sudo gem install fastlane -NV
    
© www.soinside.com 2019 - 2024. All rights reserved.