fastlane: Slack action resulting in "Shell command exited with exit status 128 instead of 0"
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
When trying to post a slack message using a simple slack action, the result is the following:
Shell command exited with exit status 128 instead of 0
Command executed
`lane :slack2 do |options|
notification(subtitle: "TEST", message: "testing slack message push", sound: "Hero")
slack(
message: "Slack test message push",
success: true
)
end`
Complete output when running fastlane, including the stack trace and command used
✘ ~/iPadApp fastlane slack2 [✔] 🚀 [10:44:42]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile [10:44:45]: ------------------------------ [10:44:45]: --- Step: default_platform --- [10:44:45]: ------------------------------ [10:44:45]: Driving the lane 'slack2' 🚀 [10:44:45]: -------------------------- [10:44:45]: --- Step: notification --- [10:44:45]: -------------------------- [10:44:45]: ------------------- [10:44:45]: --- Step: slack --- [10:44:45]: ------------------- +------------------+--------+ | Lane Context | +------------------+--------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | | | LANE_NAME | slack2 | +------------------+--------+ [10:44:45]: Shell command exited with exit status 128 instead of 0.±-----±-----------------±------------+ | fastlane summary | ±-----±-----------------±------------+ | Step | Action | Time (in s) | ±-----±-----------------±------------+ | 1 | default_platform | 0 | | 2 | notification | 0 | | 💥 | slack | 0 | ±-----±-----------------±------------+
[10:44:45]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane…
➡️ Adds more options to the
slackcommand https://github.com/fastlane/fastlane/pull/128 [closed] 3 💬 04 Feb 2017➡️ fastlane notarize fails during staple even though the package is approved https://github.com/fastlane/fastlane/issues/17667 [open] 8 💬 5 days ago
➡️ Dead link provided when
fastlane run appledochttps://github.com/fastlane/fastlane/issues/17503 [closed] 1 💬 03 Jan 2021and 13 more at: https://github.com/fastlane/fastlane/search?q=Shell command exited with exit status 128 instead of 0.&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser. Traceback (most recent call last): 34: from /usr/local/Cellar/fastlane/2.179.0/libexec/bin/fastlane:23:in
<main>' 33: from /usr/local/Cellar/fastlane/2.179.0/libexec/bin/fastlane:23:inload’ 32: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/bin/fastlane:23:in<top (required)>' 31: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:intake_off’ 30: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/commands_generator.rb:41:instart' 29: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/commands_generator.rb:352:inrun’ 28: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:inrun!' 27: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:inrun!’ 26: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:inrun_active_command' 25: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:inrun’ 24: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:incall' 23: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/commands_generator.rb:108:inblock (2 levels) in run’ 22: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/command_line_handler.rb:36:inhandle' 21: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/lane_manager.rb:47:incruise_lane’ 20: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:45:inexecute' 19: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:45:inchdir’ 18: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:49:inblock in execute' 17: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/lane.rb:33:incall’ 16: from Fastfile:176:inblock in parsing_binding' 15: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/fast_file.rb:159:inmethod_missing’ 14: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:157:intrigger_action_by_name' 13: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:229:inexecute_action’ 12: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:229:inchdir' 11: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:255:inblock in execute_action’ 10: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:inexecute_action' 9: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:263:inblock (2 levels) in execute_action’ 8: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/actions/slack.rb:44:inrun' 7: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/actions/slack.rb:230:ingenerate_slack_attachments’ 6: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/helper/git_helper.rb:126:ingit_branch' 5: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/helper/git_helper.rb:126:infetch’ 4: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/helper/git_helper.rb:126:inblock in git_branch' 3: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/helper/sh_helper.rb:12:insh’ 2: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:insh_control_output' 1: from /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:inmethod_missing’ /usr/local/Cellar/fastlane/2.179.0/libexec/gems/fastlane-2.179.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!': \e[31m[!] Shell command exited with exit status 128 instead of 0.\e[0m (FastlaneCore::Interface::FastlaneShellError)
Environment
✘ ~/iPadApp fastlane env [✔] 🚀 [10:45:36]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile [10:45:39]: Generating fastlane environment output, this might take a few seconds…
✅ fastlane environment ✅
Stack
| Key | Value |
|---|---|
| OS | 11.2.3 |
| Ruby | 2.7.2 |
| Bundler? | false |
| Git | git version 2.24.3 (Apple Git-128) |
| Installation Source | /usr/local/Cellar/fastlane/2.179.0/libexec/bin/fastlane |
| Host | macOS 11.2.3 (20D91) |
| Ruby Lib Dir | /usr/local/Cellar/ruby@2.7/2.7.2/lib |
| OpenSSL Version | OpenSSL 1.1.1i 8 Dec 2020 |
| Is contained | false |
| Is homebrew | true |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 12.4 |
System Locale
| Variable | Value | |
|---|---|---|
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | ||
| LANGUAGE |
fastlane files:
`./fastlane/Fastfile`
default_platform :ios
ENV["SLACK_URL"] = "hidden"
lane :slack2 do |options|
notification(subtitle: "TEST", message: "testing slack message push", sound: "Hero")
slack(
message: "Slack test message push",
success: true
)
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
# app_identifier "com.your.app" # the bundle identifier of your app
# apple_id "apple@fastlane.tools" # Your Apple ID
fastlane gems
| Gem | Version | Update-Status |
|---|---|---|
| fastlane | 2.179.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version |
|---|---|
| did_you_mean | 1.4.0 |
| slack-notifier | 2.3.2 |
| atomos | 0.1.3 |
| CFPropertyList | 3.0.3 |
| claide | 1.0.3 |
| colored2 | 3.1.2 |
| nanaimo | 0.3.0 |
| xcodeproj | 1.19.0 |
| rouge | 2.0.7 |
| xcpretty | 0.3.0 |
| terminal-notifier | 2.0.0 |
| unicode-display_width | 1.7.0 |
| terminal-table | 1.8.0 |
| plist | 3.6.0 |
| public_suffix | 4.0.6 |
| addressable | 2.7.0 |
| multipart-post | 2.0.0 |
| word_wrap | 1.0.0 |
| tty-screen | 0.8.1 |
| tty-cursor | 0.7.1 |
| tty-spinner | 0.9.3 |
| artifactory | 3.0.15 |
| babosa | 1.0.4 |
| colored | 1.2 |
| highline | 1.7.10 |
| commander-fastlane | 4.4.6 |
| excon | 0.79.0 |
| faraday-net_http | 1.0.1 |
| ruby2_keywords | 0.0.4 |
| faraday | 1.3.0 |
| unf_ext | 0.0.7.7 |
| unf | 0.1.4 |
| domain_name | 0.5.20190701 |
| http-cookie | 1.0.3 |
| faraday-cookie_jar | 0.0.7 |
| faraday_middleware | 1.0.0 |
| fastimage | 2.2.3 |
| gh_inspector | 1.1.3 |
| json | 2.3.0 |
| mini_magick | 4.11.0 |
| naturally | 2.2.1 |
| rubyzip | 2.3.0 |
| security | 0.1.3 |
| xcpretty-travis-formatter | 1.0.1 |
| dotenv | 2.7.6 |
| bundler | 2.1.4 |
| simctl | 1.6.8 |
| jwt | 2.2.2 |
| uber | 0.1.0 |
| declarative | 0.0.20 |
| declarative-option | 0.1.0 |
| representable | 3.0.4 |
| retriable | 3.1.2 |
| mini_mime | 1.0.3 |
| multi_json | 1.15.0 |
| signet | 0.15.0 |
| memoist | 0.16.2 |
| os | 1.1.1 |
| googleauth | 0.16.0 |
| httpclient | 2.8.3 |
| google-api-client | 0.38.0 |
| google-cloud-env | 1.5.0 |
| google-cloud-errors | 1.1.0 |
| google-cloud-core | 1.6.0 |
| rexml | 3.2.3 |
| webrick | 1.6.0 |
| google-apis-core | 0.3.0 |
| google-apis-iamcredentials_v1 | 0.2.0 |
| google-apis-storage_v1 | 0.3.0 |
| rake | 13.0.3 |
| digest-crc | 0.6.3 |
| google-cloud-storage | 1.31.0 |
| emoji_regex | 3.2.2 |
| jmespath | 1.4.0 |
| aws-partitions | 1.435.0 |
| aws-eventstream | 1.1.1 |
| aws-sigv4 | 1.2.3 |
| aws-sdk-core | 3.113.0 |
| aws-sdk-kms | 1.43.0 |
| aws-sdk-s3 | 1.93.0 |
| uri | 0.10.0 |
| forwardable | 1.3.1 |
| logger | 1.4.2 |
| cgi | 0.1.0 |
| date | 3.0.0 |
| timeout | 0.1.0 |
| stringio | 0.1.0 |
| zlib | 1.1.0 |
| ipaddr | 1.2.2 |
| openssl | 2.1.2 |
| ostruct | 0.2.0 |
| strscan | 1.0.3 |
| delegate | 0.1.0 |
| fileutils | 1.4.1 |
| io-console | 0.5.6 |
| open3 | 0.1.0 |
| singleton | 0.1.0 |
| yaml | 0.1.0 |
| psych | 3.1.0 |
| mutex_m | 0.1.0 |
generated on: 2021-03-29
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 19 (3 by maintainers)
Just edit your Gemfile and change
gem "fastlane"togem "fastlane", '2.178.0'and afterwards usebundle update, it will downgrade your fastlane version.Ah - I was too quick - just saw your initial post and it seems like you are not using a Gemfile yet. Just follow the steps via the below link first to use a Gemfile, and then just add the version number to it as above.
https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile