I'm trying to make a ruby module with some helper functions that I use in the Fastfile. It looks as follows:
lane :a do |options|
Utils.foo
end
module Utils
def self.foo
get_info_plist_value(...)
end
end
When I try to run the lane I get this error: undefined method 'get_info_plist_value' for Utils:Module.
I've tried the following ways to solve this problem:
- adding
extend Utilsafter the module definition - including
FastlaneorFastlane::Actionsinto the module
These didn't help me.
Are there any other ways to solve the problem?