fastlane: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)

New Issue Checklist

Issue Description

Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

[15:52:55]: Starting login with user ‘xxxx’ [15:52:59]: Successfully logged in [15:52:59]: Fetching profiles… ±-----------------±-----------+ | Lane Context | ±-----------------±-----------+ | PLATFORM_NAME | | | LANE_NAME | demo | | PRODUCE_APPLE_ID | | ±-----------------±-----------+ [15:53:00]: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)

I recently started getting this error when running sigh. Anybody knows what it might be?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (3 by maintainers)

Commits related to this issue

Most upvoted comments

@pedro380085 I resolved the problem by #8611.

Maybe you can temporarily resolve by adding follows code,

## **your gem directory**/gems/plist-3.2.0/lib/plist/parser.rb:90
      @xml = @xml.force_encoding("UTF-8") # Add this code
      @scanner = StringScanner.new( @xml )

or https://github.com/fastlane/fastlane/pull/8611/files#diff-2628d3e9348dc001ed91a9749a936d18R10

Too it works for me, thks @koutalou

It works for me, thanks @koutalou!

UPdate: I locate parser.rb file in my labtop:

locate lib/plist/parser.rb
/Library/Ruby/Gems/2.0.0/gems/plist-3.2.0/lib/plist/parser.rb
/Users/../.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/plist-3.2.0/lib/plist/parser.rb
/Users/../.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/plist-3.2.0/lib/plist/parser.rb

I already edit as @koutalou in a couple of files /Users/jenkins/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/plist-3.2.0/lib/plist/parser.rb /Users/jenkins/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/plist-3.2.0/lib/plist/parser.rb

but it doesn’t work.

Edit in /Library/Ruby/Gems/2.0.0/gems/plist-3.2.0/lib/plist/parser.rb - Ruby system, and it work like a champ