不兼容的编码regexp匹配(UTF-8 regexp与ASCII-8BIT字符串)

时间:2017-05-16 13:34:18

标签: ios fastlane

我正在使用fastlane来进行ios部署以进行曲棍球比赛,我这样写了。

 hockey_ver = String(latest_hockeyapp_version_number(
          api_token: '',
          app_name: '',
          ))

  increment_version_number({
        version_number: hockey_ver
    })
  increment_build_number({
    build_number: hockey_ver
  })

但是我得到了这样的错误。我该怎么办?

  

/Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/parser.rb:120:in   gsub':[!]不兼容的编码正则表达式匹配(UTF-8正则表达式与   ASCII-8BIT字符串)(Encoding :: CompatibilityError)来自   /Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/parser.rb:120:injson'   从   /Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/parser.rb:140:in   parse_supported_format'从   /Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/parser.rb:105:inparse'从   /Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/parser.rb:67:in   叫'从   /Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/request.rb:383:inparse_response'   从   /Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/request.rb:351:in   阻止在handle_response'从   /Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/response.rb:25:inparsed_response'   从   /Users/khantthulinn/.rvm/gems/ruby-2.4.0@global/gems/httparty-0.15.2/lib/httparty/response.rb:88:in   method_missing的'从

1 个答案:

答案 0 :(得分:1)

将您的httparty gem降级为0.14版本:

https://github.com/jnunemaker/httparty/issues/533