Ruby Fastlane-无法通过'require'命令加载文件
我正在尝试使用Ruby Fastlane-无法通过'require'命令加载文件,ruby,fastlane,Ruby,Fastlane,我正在尝试使用import\u from\u git命令使用远程Fastfile。但为了不造成混乱,在另一个文件中创建了一个助手。我的问题是fastlane正确地克隆了主文件,但却找不到辅助文件 快速文件: import_from_git( url: '[URL].git', branch: 'refactoring', path: 'RSBMatch.rb' ) RSBMatch.rb: require 'helper/match_helper' fastlane_
import\u from\u 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':无法加载这样的文件--helper/match\u helper(LoadError)
试一试
require_relative 'helper/match_helper'
什么是Fastfile?