fastlane: upload_symbols_to_crashlytics invalid byte sequence

New Issue Checklist

Issue Description

Crash report: 41632663b2d44758677821fa59882787 This error happens on several machines.

Complete output when running fastlane, including the stack trace and command used
stiefel-OSX:appletv-99u stiefel$ fastlane refresh_dsyms
[11:34:01]: Driving the lane 'refresh_dsyms' 🚀
[11:34:01]: -----------------------------
[11:34:01]: --- Step: update_fastlane ---
[11:34:01]: -----------------------------
[11:34:01]: Looking for updates for cert, credentials_manager, deliver, fastlane, fastlane_core, frameit, gym, match, pem, pilot, produce, scan, screengrab, sigh, snapshot, spaceship, supply...
[11:34:05]: Nothing to update ✅
[11:34:05]: ----------------------------
[11:34:05]: --- Step: download_dsyms ---
[11:34:05]: ----------------------------
[11:34:05]: Login to iTunes Connect (redacted@gmail.com)
[11:34:08]: Login successful
[11:34:08]: Looking for dSYM files for com.behance.99u
[11:34:09]: -------------------------------------------
[11:34:09]: --- Step: upload_symbols_to_crashlytics ---
[11:34:09]: -------------------------------------------
[11:34:09]: invalid byte sequence in UTF-8
[11:34:09]: Unable to find plist file at '/Users/stiefel/Developer/appletv-99u/appletv-99u/Crashlytics.framework/Info.plist'
[11:34:09]: invalid byte sequence in UTF-8
[11:34:09]: Unable to find plist file at '/Users/stiefel/Developer/appletv-99u/appletv-99u/Fabric.framework/Info.plist'
[11:34:09]: -----------------------------------
[11:34:09]: --- Step: clean_build_artifacts ---
[11:34:09]: -----------------------------------
[11:34:09]: Cleaned up build artifacts 🐙
[11:34:09]: Variable Dump:
[11:34:09]: {:PLATFORM_NAME=>nil, :LANE_NAME=>"refresh_dsyms", :GET_INFO_PLIST_VALUE_CUSTOM_VALUE=>nil}
[11:34:09]: no implicit conversion of nil into String

+------+-------------------------------+-------------+
|                  fastlane summary                  |
+------+-------------------------------+-------------+
| Step | Action                        | Time (in s) |
+------+-------------------------------+-------------+
| 1    | update_fastlane               | 3           |
| 2    | download_dsyms                | 3           |
| 3    | upload_symbols_to_crashlytics | 0           |
| 4    | clean_build_artifacts         | 0           |
+------+-------------------------------+-------------+

[11:34:09]: fastlane finished with errors
Successfully submitted a crash report. If this is a problem with one of the tools specifically,
please submit an issue on GitHub and attach the following number to it: '41632663b2d44758677821fa59882787'
The crash report has been stored locally '/tmp/sentry_41632663b2d44758677821fa59882787.json'
/Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/actions/upload_symbols_to_crashlytics.rb:20:in `expand_path': [!] no implicit conversion of nil into String (TypeError)
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/actions/upload_symbols_to_crashlytics.rb:20:in `block in run'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/actions/upload_symbols_to_crashlytics.rb:20:in `collect'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/actions/upload_symbols_to_crashlytics.rb:20:in `run'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/runner.rb:143:in `block (2 levels) in execute_action'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/runner.rb:129:in `block in execute_action'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/runner.rb:128:in `chdir'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/runner.rb:128:in `execute_action'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/fast_file.rb:149:in `method_missing'
    from Fastfile:13:in `block in parsing_binding'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/lane.rb:36:in `call'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/lane.rb:36:in `call'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/runner.rb:52:in `block in execute'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/runner.rb:46:in `chdir'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/runner.rb:46:in `execute'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/lib/fastlane/command_line_handler.rb:30:in `handle'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/bin/fastlane:38:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Users/stiefel/.gems/gems/fastlane_core-0.41.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/bin/fastlane:156:in `run'
    from /Users/stiefel/.gems/gems/fastlane-1.70.0/bin/fastlane:162:in `<top (required)>'
    from /usr/local/bin/fastlane:23:in `load'
    from /usr/local/bin/fastlane:23:in `<main>'

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Fastfile:

lane :refresh_dsyms do
  unlock_keychain(
    path: "redacted",
    password: "redacted"
  )

  download_dsyms
  upload_symbols_to_crashlytics(binary_path: "./appletv-99u/Crashlytics.framework/uploadDSYM")
end

Environment

fastlane version (fastlane -v): fastlane 1.70.0 Do you use bundler, rbenv or ram? No

export LANG="en_US.UTF-8"
export LANGUAGE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export FASTLANE_XCODE_LIST_TIMEOUT=60

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 27 (8 by maintainers)

Most upvoted comments

I was seeing this exact same issue. Doing both of the following fixed it for me:

  1. Updating to Crashlytics 3.8.0
  2. Passing my Crasylytics token via the env variable CRASHLYTICS_API_TOKEN.

I just ran into this issue fixed by make sure your using Crashlytics > 3.7.0 cocoapod as the upload-symbols wasn’t included before then

Just pushed https://github.com/fastlane/fastlane/pull/4031, this will be in the next release 👍