错误是:
./batch_build.rb:83:in `initialize': no implicit conversion of String into Integer (TypeError)
from ./batch_build.rb:83:in `open'
from ./batch_build.rb:83:in `<main>'
第83行提到:
IO.open("xcodebuild -scheme Runner archive -archivePath '/tmp/#{BUILD_DIR}' -UseNewBuildSystem=NO -allowProvisioningUpdates") do |line|
hasError = true if line.downcase.include? 'error' # line 85
`xcode /tmp/#{BUILD_DIR}/Runner.xarchive` # line 87
end # line 89
相关行是:
KEY_FILE = 'android/key.properties'
verCode = `cat #{KEY_FILE} | grep versionCode | cut -d '=' -f 2`.to_i
verCode += 1
BUILD_DIR = "xyz_#{verCode}"
怎么了?
答案 0 :(得分:1)
该死,它应该是popen
而不是open
,
在第83行的.each
之前也缺少do
。
嗯..我应该删除这个问题吗?