fastlane: upload_symbols_to_crashlytics returning Shell command exited with exit status instead of 0.

New Issue Checklist

Issue Description

I wrote a script to automate the process of download dSYMs and update it to Crashlytics. It has been working perfectly for a long period but stopped working in the last 3 updates.

The terminal returns Shell command exited with exit status instead of 0. when the command upload_symbols_to_crashlytics finishes. It also returns Successfully uploaded dSYM files to Crashlytics πŸ’― at the end but I am not sure if it is really uploading.

screen shot 2019-01-25 at 11

Command executed
desc "Refresh all dSYMs of all schemes"
lane :refreshDsyms do
  POSSIBLE_IDENTIFIER_ARRAY.each_with_index do |identifier, index|
    download_dsyms(app_identifier: identifier, version: 'latest') # Download dSYM files from iTC
    outputs = lane_context[SharedValues::DSYM_PATHS]
    if outputs.length > 1 then
      outputs.delete_at(0)
    end
    outputs.each do |output|
      upload_symbols_to_crashlytics(
        api_token: ENV["FABRIC_API_KEY"],
        gsp_path: "./GoogleService-Info-#{GPS_ARRAY[index]}.plist",
        dsym_path: output)# Upload them to Crashlytics
    end
    clean_build_artifacts # Delete the local dSYM files
  end
end

Environment

βœ… fastlane environment βœ…

Stack

Key Value
OS 10.13.4
Ruby 2.3.3
Bundler? false
Git git version 2.17.1
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.13.4 (17E199)
Ruby Lib Dir /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
OpenSSL Version LibreSSL 2.2.7
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 9.4

System Locale

Variable Value
LANG en_IE.UTF-8 βœ…
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
desc "Refresh all dSYMs of all schemes to Crashlytics"
lane :refreshDsyms do
  POSSIBLE_IDENTIFIER_ARRAY.each_with_index do |identifier, index|
    download_dsyms(app_identifier: identifier, version: 'latest') # Download dSYM files from iTC
    outputs = lane_context[SharedValues::DSYM_PATHS]
    if outputs.length > 1 then
      outputs.delete_at(0)
    end
    puts outputs
    outputs.each do |output|
      upload_symbols_to_crashlytics(
        api_token: ENV["FABRIC_API_KEY"],
        gsp_path: "./GoogleService-Info-#{GPS_ARRAY[index]}.plist",
        dsym_path: output)# Upload them to Crashlytics
    end
    clean_build_artifacts # Delete the local dSYM files
  end
end
`./fastlane/Appfile`
# The Appfile can be used to specify information that's used across all fastlane
# tools, like your username or the app's bundle identifier.
#
# For more details, check out the documentation at:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md

fastlane gems

Gem Version Update-Status
fastlane 2.114.0 βœ… Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.0.0
slack-notifier 2.3.2
atomos 0.1.3
CFPropertyList 3.0.0
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.6
xcodeproj 1.6.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 1.8.0
terminal-table 1.8.0
plist 3.4.0
public_suffix 2.0.5
addressable 2.5.2
multipart-post 2.0.0
word_wrap 1.0.0
tty-spinner 0.8.0
babosa 1.0.2
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.62.0
unf_ext 0.0.7.5
unf 0.1.4
domain_name 0.5.20180417
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
gh_inspector 1.1.3
mini_magick 4.5.1
multi_json 1.13.1
multi_xml 0.6.0
rubyzip 1.2.2
security 0.1.3
xcpretty-travis-formatter 1.0.0
bundler 1.16.2
faraday_middleware 0.12.2
google-cloud-env 1.0.5
google-cloud-core 1.2.7
digest-crc 0.4.1
google-cloud-storage 1.15.0
emoji_regex 0.1.1
tty-cursor 0.6.0
tty-screen 0.6.5
faraday 0.15.3
json 2.1.0
io-console 0.4.5
libxml-ruby 2.9.0
jwt 2.1.0
memoist 0.16.0
googleauth 0.6.6
signet 0.10.0
uber 0.1.0
declarative 0.0.10
declarative-option 0.1.0
representable 3.0.4
httpclient 2.8.3
google-api-client 0.23.9
fastimage 2.1.4
unicode-display_width 1.4.0
dotenv 2.5.0
retriable 3.1.2
mime-types 3.2.2
mime-types-data 3.2018.0812
os 1.0.0
psych 2.1.0

generated on: 2019-01-25

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 23 (3 by maintainers)

Most upvoted comments

@janpio are there any new information? We can’t get it fixed

@ppamorim I just removed the api_token and it works.

Could you please add the complete output of the lane? We need a bit more context to understand what might be going on here. Thanks.