快速通道 - 无法通过"require"命令加载文件



我正在尝试使用import_from_git命令使用远程Fastfile。但是为了不弄得一团糟,在另一个文件中创建了一个助手。我的问题是fastlane正确克隆了主文件,但找不到辅助文件。

快速文件:

import_from_git(
url: '[URL].git',
branch: 'refactoring',
path: 'RSBMatch.rb'
)

RSBMatch.rb:

require 'helper/match_helper'
fastlane_version "1.47.0"
default_platform :ios
platform :ios do
lane :test_lane do
RSB::Test.hey
end
end

match_helper.rb:

module RSB
module Test
def self.hey
puts 'Hello'
end
end
end

错误:

require':无法加载此类文件 -- 帮助程序/match_helper (加载错误(

尝试使用

require_relative 'helper/match_helper'

看这里

最新更新