在Fastfile中使用Rexml,但是fastlane不能识别include,所以我不能包含Rexml模块。
下面是错误:
[!] Could not find action, lane or variable 'include'. Check out the documentation for more details: https://docs.fastlane.tools/actions以下是我在Fastfile中的代码
#!/usr/bin/ruby
require 'rexml/document'
include REXML发布于 2019-04-02 10:04:26
使用:
require "rexml/document"
file = File.new( "movie.xml" )
xmldoc = REXML::Document.new file而不是:
#!/usr/bin/ruby -w
require 'rexml/document'
# include REXML
xmlfile = File.new("movie.xml")
xmldoc = rexml.Document.new(xmlfile)解决我的问题,但我仍然不知道为什么fastlane不能识别包含。
https://stackoverflow.com/questions/55452736
复制相似问题