fastlane: S3 Action is not able to find Access Key and Secret Access Key

New Issue Checklist

Issue Description

S3 Action does not find AWS Key and Secret Access Key. The error is [!] uninitialized constant Fastlane::Actions::S3Action::AWS (NameError)

Complete output when running fastlane, including the stack trace and command used
10:15:26  ~/Dev..nts/fs-spesenapp-ios  fastlane ios beta                                                                                                                                                                                develop ● ↑1
[10:15:33]: -------------------------------------------------
[10:15:33]: --- Step: Verifying required fastlane version ---
[10:15:33]: -------------------------------------------------
[10:15:33]: fastlane version valid
[10:15:33]: ------------------------------
[10:15:33]: --- Step: default_platform ---
[10:15:33]: ------------------------------
[10:15:33]: Driving the lane 'ios beta' 🚀
[10:15:33]: -------------------------------
[10:15:33]: --- Step: number_of_commits ---
[10:15:33]: -------------------------------
[10:15:33]: $ git rev-parse HEAD
[10:15:33]: ▸ 0e691c30b80e90703f123e381ed6a65230fde72b
[10:15:33]: $ git rev-list HEAD --count
[10:15:33]: ▸ 209
[10:15:33]: ------------------------------------
[10:15:33]: --- Step: increment_build_number ---
[10:15:33]: ------------------------------------
[10:15:33]: $ cd /Users/silasknobel/Developments/fs-spesenapp-ios && agvtool new-version -all 209
[10:15:34]: ▸ Setting version of project SpesenApp to:
[10:15:34]: ▸ 209.
[10:15:34]: ▸ Also setting CFBundleVersion key (assuming it exists)
[10:15:34]: ▸ Updating CFBundleVersion in Info.plist(s)...
[10:15:34]: ▸ Updated CFBundleVersion in "SpesenApp.xcodeproj/../SpesenApp/Info.plist" to 209
[10:15:34]: ----------------------------
[10:15:34]: --- Step: rm -rf ./build ---
[10:15:34]: ----------------------------
[10:15:34]: $ rm -rf ./build
[10:15:34]: --------------------------------
[10:15:34]: --- Step: get_version_number ---
[10:15:34]: --------------------------------
[10:15:34]: $ cd /Users/silasknobel/Developments/fs-spesenapp-ios && agvtool what-marketing-version -terse
[10:15:35]: ▸ "SpesenApp.xcodeproj/../SpesenApp/Info.plist"=1.2.0
[10:15:35]: ------------------------------
[10:15:35]: --- Step: get_build_number ---
[10:15:35]: ------------------------------
[10:15:35]: $ cd /Users/silasknobel/Developments/fs-spesenapp-ios && agvtool what-version -terse
[10:15:35]: ▸ 209
[10:15:35]: -----------------
[10:15:35]: --- Step: gym ---
[10:15:35]: -----------------
[10:15:35]: xcrun xcodebuild -list -workspace 'SpesenApp.xcworkspace'
2016-04-21 10:15:36.000 xcodebuild[37009:969065] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FuzzyAutocomplete.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-04-21 10:15:36.632 xcodebuild[37013:969115] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FuzzyAutocomplete.xcplugin' not present in DVTPlugInCompatibilityUUIDs

+----------------------+------------------------+
|             Summary for gym 1.6.2             |
+----------------------+------------------------+
| scheme               | SpesenApp              |
| workspace            | SpesenApp.xcworkspace  |
| configuration        | Release                |
| export_method        | enterprise             |
| clean                | true                   |
| silent               | true                   |
| output_directory     | ./build                |
| output_name          | fs-spesenapp-1.2.0-209 |
| destination          | generic/platform=iOS   |
| use_legacy_build_api | false                  |
| buildlog_path        | ~/Library/Logs/gym     |
+----------------------+------------------------+


[10:17:18]: ▸ Archive Succeeded
[10:17:19]: Successfully stored the archive. You can find it in the Xcode Organizer.

[10:17:32]: Successfully exported and compressed dSYM file
[10:17:32]: Successfully exported and signed the ipa file:
[10:17:32]: /Users/silasknobel/Developments/fs-spesenapp-ios/build/fs-spesenapp-1.2.0-209.ipa
[10:17:32]: --------------------------------
[10:17:32]: --- Step: get_version_number ---
[10:17:32]: --------------------------------
[10:17:32]: $ cd /Users/silasknobel/Developments/fs-spesenapp-ios && agvtool what-marketing-version -terse
[10:17:32]: ▸ "SpesenApp.xcodeproj/../SpesenApp/Info.plist"=1.2.0
[10:17:32]: ------------------------------
[10:17:32]: --- Step: get_build_number ---
[10:17:32]: ------------------------------
[10:17:32]: $ cd /Users/silasknobel/Developments/fs-spesenapp-ios && agvtool what-version -terse
[10:17:33]: ▸ 209
[10:17:33]: ----------------
[10:17:33]: --- Step: s3 ---
[10:17:33]: ----------------
[10:17:33]: -------------------
[10:17:33]: --- Step: slack ---
[10:17:33]: -------------------
[10:17:34]: Successfully sent Slack notification
[10:17:34]: Variable Dump:
[10:17:34]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :BUILD_NUMBER=>"209", :VERSION_NUMBER=>"1.2.0", :IPA_OUTPUT_PATH=>"/Users/silasknobel/Developments/fs-spesenapp-ios/build/fs-spesenapp-1.2.0-209.ipa", :DSYM_OUTPUT_PATH=>"/Users/silasknobel/Developments/fs-spesenapp-ios/build/fs-spesenapp-1.2.0-209.app.dSYM.zip", :XCODEBUILD_ARCHIVE=>"/Users/silasknobel/Library/Developer/Xcode/Archives/2016-04-21/fs-spesenapp-1.2.0-209 2016-04-21 10.15.37.xcarchive"}
[10:17:34]: uninitialized constant Fastlane::Actions::S3Action::AWS

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | number_of_commits                   | 0           |
| 4    | increment_build_number              | 0           |
| 5    | rm -rf ./build                      | 0           |
| 6    | get_version_number                  | 0           |
| 7    | get_build_number                    | 0           |
| 8    | gym                                 | 116         |
| 9    | get_version_number                  | 0           |
| 10   | get_build_number                    | 0           |
| 11   | s3                                  | 0           |
| 12   | slack                               | 1           |
+------+-------------------------------------+-------------+

[10:17:34]: 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: 'f7e4d3ae87156221937833aeaf42e4a9'
The crash report has been stored locally '/tmp/sentry_f7e4d3ae87156221937833aeaf42e4a9.json'
/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/actions/s3.rb:209:in `s3_client': [!] uninitialized constant Fastlane::Actions::S3Action::AWS (NameError)
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/actions/s3.rb:70:in `run'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb:143:in `block (2 levels) in execute_action'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb:129:in `block in execute_action'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb:128:in `chdir'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb:128:in `execute_action'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/fast_file.rb:149:in `method_missing'
   from Fastfile:45:in `block (2 levels) in parsing_binding'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/lane.rb:36:in `call'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/lane.rb:36:in `call'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb:52:in `block in execute'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb:46:in `chdir'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb:46:in `execute'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/command_line_handler.rb:30:in `handle'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.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 /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.41.2/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 /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/bin/fastlane:168:in `run'
   from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/bin/fastlane:174:in `<top (required)>'
   from /Users/silasknobel/.gems/bin/fastlane:23:in `load'
   from /Users/silasknobel/.gems/bin/fastlane:23:in `<main>'

Configuration Files

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

Fastfile:

fastlane_version "1.81.0"

default_platform :ios

def ipa_name
    version = get_version_number(xcodeproj: "SpesenApp.xcodeproj")
    build = get_build_number(xcodeproj: "SpesenApp.xcodeproj")
    "fs-spesenapp-#{version}-#{build}.ipa"
end

platform :ios do
  before_all do
  end

  lane :beta do
    #   ensure_git_status_clean
      build_number = number_of_commits
      increment_build_number(
        build_number: build_number
      )
      sh "rm -rf ./build"
      gym(
        scheme: "SpesenApp",
        workspace: "SpesenApp.xcworkspace",
        configuration: "Release",
        export_method: "enterprise",
        clean: true,
        silent: true,
        output_directory: "./build",
        output_name: ipa_name
      )
      s3(
        access_key: ENV['S3_ACCESS_KEY'],               # Required from user.
        secret_access_key: ENV['S3_SECRET_ACCESS_KEY'], # Required from user.
        bucket: "apps.software-brauerei.ch",
        # region: "eu-central-1",
        path: "fs-spesenapp/{CFBundleShortVersionString}/{CFBundleVersion}/",
        ipa: "./build/#{ipa_name}",
        upload_metadata: "true",
        html_template_path: "./fastlane/sobr_s3_html_template.erb",
        html_file_name: "fs-spesenapp-beta.html",
        version_file_name: "fs-spesenapp-beta.json"
      )
      commit_version_bump
      slack(
         message: "Successfully deployed a new iOS beta build.",
         success: true,
         default_payloads: [],
         payload: {
             'Download' => ENV["S3_HTML_OUTPUT_PATH"],
             'Version' => get_version_number(xcodeproj: "Elvetino.xcodeproj"),
             'Build' => get_build_number(xcodeproj: "Elvetino.xcodeproj")
         }
      )

  end

  # You can define as many lanes as you want

  after_all do |lane|

  end

  error do |lane, exception|
        slack(
          channel: ENV["SLACK_PRIVATE_CHANNEL_NAME"],
          message: exception.message,
          success: false
        )
  end
end

.env file

SLACK_URL="https://hooks.slack.com/services..."
SLACK_CHANNEL="#general"

.env.default file

SLACK_PRIVATE_CHANNEL_NAME="@katunch"
S3_ACCESS_KEY=xxx
S3_SECRET_ACCESS_KEY=xxx

crashlog

{
  "event_id": "f7e4d3ae87156221937833aeaf42e4a9",
  "message": "NameError: uninitialized constant Fastlane::Actions::S3Action::AWS",
  "timestamp": "2016-04-21T08:17:35",
  "time_spent": null,
  "level": 40,
  "project": null,
  "platform": "ruby",
  "logger": "",
  "culprit": "fastlane/actions/s3.rb in s3_client at line 209",
  "server_name": "silass-macbook-pro.local",
  "modules": {
    "CFPropertyList": "2.2.8",
    "actionmailer": "4.2.1",
    "actionpack": "4.2.1",
    "actionview": "4.2.1",
    "activejob": "4.2.1",
    "activemodel": "4.2.1",
    "activerecord": "4.2.1",
    "activesupport": "4.2.1",
    "addressable": "2.3.8",
    "arel": "6.0.0",
    "ast": "2.1.0",
    "astrolabe": "1.3.1",
    "autoparse": "0.3.3",
    "aws-sdk": "1.61.0",
    "aws-sdk-core": "2.2.32",
    "aws-sdk-resources": "2.2.32",
    "aws-sdk-v1": "1.61.0",
    "babosa": "1.0.2",
    "bigdecimal": "1.2.0",
    "binding_of_caller": "0.7.2",
    "builder": "3.2.2",
    "bundler": "1.10.6",
    "capybara": "2.6.2",
    "cert": "1.4.0",
    "certified": "1.0.0",
    "chunky_png": "1.3.5",
    "claide": "0.9.1",
    "cliver": "0.3.2",
    "cocoapods": "0.39.0",
    "cocoapods-appledoc": "0.1.0",
    "cocoapods-core": "0.39.0",
    "cocoapods-deintegrate": "0.2.1",
    "cocoapods-downloader": "0.9.3",
    "cocoapods-plugins": "0.4.2",
    "cocoapods-search": "0.1.0",
    "cocoapods-stats": "0.6.2",
    "cocoapods-trunk": "0.6.4",
    "cocoapods-try": "0.5.1",
    "coderay": "1.1.1",
    "coffee-rails": "4.1.1",
    "coffee-script": "2.4.1",
    "coffee-script-source": "1.10.0",
    "colored": "1.2",
    "columnize": "0.9.0",
    "commander": "4.3.5",
    "compass": "1.0.3",
    "compass-core": "1.0.3",
    "compass-import-once": "1.0.5",
    "coveralls": "0.8.10",
    "crack": "0.4.3",
    "crafter": "0.1.6",
    "credentials_manager": "0.15.0",
    "cupertino": "1.3.4",
    "debase": "0.1.3",
    "debase-ruby_core_source": "0.7.9",
    "debug_inspector": "0.0.2",
    "deliver": "1.10.5",
    "diff-lcs": "1.2.5",
    "docile": "1.1.5",
    "domain_name": "0.5.24",
    "dotenv": "0.11.1",
    "dotenv-deployment": "0.0.2",
    "erubis": "2.7.0",
    "escape": "0.0.4",
    "excon": "0.45.4",
    "execjs": "2.5.2",
    "extlib": "0.9.16",
    "faraday": "0.8.9",
    "faraday-cookie_jar": "0.0.6",
    "faraday_middleware": "0.9.1",
    "fastimage": "1.6.6",
    "fastlane": "1.67.0",
    "fastlane_core": "0.39.0",
    "ffi": "1.9.6",
    "frameit": "2.5.1",
    "fuzzy_match": "2.0.4",
    "globalid": "0.3.5",
    "google-api-client": "0.9.2",
    "googleauth": "0.5.1",
    "gym": "1.6.2",
    "highline": "1.7.2",
    "http-cookie": "1.0.2",
    "httpclient": "2.7.1",
    "hurley": "0.2",
    "i18n": "0.7.0",
    "io-console": "0.4.2",
    "jbuilder": "2.2.16",
    "jmespath": "1.2.4",
    "jquery-rails": "4.0.3",
    "json": "1.7.7",
    "json_pure": "1.8.3",
    "jwt": "1.5.2",
    "kramdown": "1.9.0",
    "krausefx-shenzhen": "0.14.7",
    "launchy": "2.4.3",
    "libxml-ruby": "2.6.0",
    "little-plugger": "1.1.4",
    "logging": "2.0.0",
    "loofah": "2.0.2",
    "mail": "2.6.3",
    "markdown2confluence": "0.0.4",
    "match": "0.4.0",
    "mechanize": "2.5.1",
    "memoist": "0.14.0",
    "method_source": "0.8.2",
    "mime-types": "1.25.1",
    "mini_magick": "4.0.4",
    "mini_portile": "0.6.2",
    "mini_portile2": "2.0.0",
    "minitest": "4.3.2",
    "molinillo": "0.4.0",
    "multi_json": "1.11.0",
    "multi_xml": "0.5.5",
    "multipart-post": "1.2.0",
    "mustache": "0.99.8",
    "nap": "1.0.0",
    "net-http-digest_auth": "1.4",
    "net-http-persistent": "2.9.4",
    "net-sftp": "2.1.2",
    "net-ssh": "2.9.2",
    "netrc": "0.7.8",
    "nokogiri": "1.5.6",
    "ntlm-http": "0.1.1",
    "open4": "1.3.4",
    "os": "0.9.6",
    "parser": "2.2.3.0",
    "pbxplorer": "1.0.0",
    "pdf-core": "0.4.0",
    "pem": "1.3.0",
    "phantomjs": "1.9.8.0",
    "pilot": "1.5.0",
    "plist": "3.1.0",
    "poltergeist": "1.5.1",
    "powerpack": "0.1.1",
    "prawn": "1.3.0",
    "produce": "1.1.1",
    "pry": "0.10.3",
    "psych": "2.0.0",
    "rack": "1.6.1",
    "rack-test": "0.6.3",
    "rails": "4.2.1",
    "rails-deprecated_sanitizer": "1.0.3",
    "rails-dom-testing": "1.0.6",
    "rails-html-sanitizer": "1.0.2",
    "railties": "4.2.1",
    "rainbow": "2.0.0",
    "rake": "0.9.6",
    "rb-fsevent": "0.9.4",
    "rb-inotify": "0.9.5",
    "rdoc": "4.0.0",
    "representable": "2.3.0",
    "rest-client": "1.8.0",
    "retriable": "2.1.0",
    "rouge": "1.8.0",
    "rspec": "3.1.0",
    "rspec-core": "3.1.7",
    "rspec-expectations": "3.1.2",
    "rspec-mocks": "3.1.3",
    "rspec-support": "3.1.2",
    "rubocop": "0.35.1",
    "ruby-debug-ide": "0.4.30",
    "ruby-progressbar": "1.7.5",
    "rubygems-update": "2.4.5",
    "rubyzip": "1.1.7",
    "safe_yaml": "1.0.4",
    "sass": "3.4.14",
    "sass-rails": "5.0.3",
    "scan": "0.5.2",
    "screengrab": "0.3.1",
    "sdoc": "0.4.1",
    "security": "0.1.3",
    "sentry-raven": "0.15.2",
    "shenzhen": "0.10.3",
    "sigh": "1.6.0",
    "signet": "0.7.2",
    "simplecov": "0.11.1",
    "simplecov-html": "0.10.0",
    "slack-notifier": "1.5.1",
    "slop": "3.6.0",
    "snapshot": "1.12.0",
    "spaceship": "0.24.0",
    "spring": "1.3.6",
    "sprockets": "3.2.0",
    "sprockets-rails": "2.3.1",
    "sqlite3": "1.3.7",
    "subexec": "0.2.3",
    "supply": "0.6.1",
    "term-ansicolor": "1.0.7",
    "terminal-notifier": "1.6.3",
    "terminal-table": "1.4.5",
    "test-unit": "2.0.0.0",
    "thor": "0.19.1",
    "thread_safe": "0.3.5",
    "tilt": "1.4.1",
    "tins": "1.6.0",
    "ttfunk": "1.4.0",
    "turbolinks": "2.5.3",
    "tzinfo": "1.2.2",
    "uber": "0.0.15",
    "uglifier": "2.7.1",
    "unf": "0.1.4",
    "unf_ext": "0.0.7.1",
    "web-console": "2.1.2",
    "webmock": "1.19.0",
    "webrobots": "0.1.1",
    "websocket-driver": "0.5.1",
    "websocket-extensions": "0.1.1",
    "xcode-install": "1.0.1",
    "xcodeproj": "0.28.2",
    "xcpretty": "0.2.1",
    "xcpretty-travis-formatter": "0.0.4",
    "xpath": "2.0.0",
    "yard": "0.8.7.6"
  },
  "extra": {
  },
  "tags": {
  },
  "user": {
  },
  "exception": {
    "values": [
      {
        "type": "NameError",
        "value": "uninitialized constant Fastlane::Actions::S3Action::AWS",
        "module": "",
        "stacktrace": {
          "frames": [
            {
              "pre_context": [
                "end\n",
                "\n",
                "gem 'fastlane', version\n"
              ],
              "post_context": [
                null,
                null,
                null
              ],
              "abs_path": "/Users/silasknobel/.gems/bin/fastlane",
              "function": "<main>",
              "lineno": 23,
              "in_app": false,
              "context_line": "load Gem.bin_path('fastlane', 'fastlane', version)\n",
              "project_root": null,
              "filename": "/Users/silasknobel/.gems/bin/fastlane"
            },
            {
              "pre_context": [
                "end\n",
                "\n",
                "gem 'fastlane', version\n"
              ],
              "post_context": [
                null,
                null,
                null
              ],
              "abs_path": "/Users/silasknobel/.gems/bin/fastlane",
              "function": "load",
              "lineno": 23,
              "in_app": false,
              "context_line": "load Gem.bin_path('fastlane', 'fastlane', version)\n",
              "project_root": null,
              "filename": "/Users/silasknobel/.gems/bin/fastlane"
            },
            {
              "pre_context": [
                "\n",
                "begin\n",
                "  FastlaneCore::UpdateChecker.start_looking_for_update('fastlane')\n"
              ],
              "post_context": [
                "ensure\n",
                "  FastlaneCore::UpdateChecker.show_update_status('fastlane', Fastlane::VERSION)\n",
                "end\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/bin/fastlane",
              "function": "<top (required)>",
              "lineno": 174,
              "in_app": false,
              "context_line": "  FastlaneApplication.new.run\n",
              "project_root": null,
              "filename": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/bin/fastlane"
            },
            {
              "pre_context": [
                "\n",
                "    default_command :trigger\n",
                "\n"
              ],
              "post_context": [
                "  end\n",
                "end\n",
                "\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/bin/fastlane",
              "function": "run",
              "lineno": 168,
              "in_app": false,
              "context_line": "    run!\n",
              "project_root": null,
              "filename": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/bin/fastlane"
            },
            {
              "pre_context": [
                "      never_trace!\n",
                "    ).each do |meth|\n",
                "      eval <<-END, binding, __FILE__, __LINE__\n"
              ],
              "post_context": [
                "          ::Commander::Runner.instance.#{meth}(*args, &block)\n",
                "        end\n",
                "      END\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb",
              "function": "run!",
              "lineno": 15,
              "in_app": false,
              "context_line": "        def #{meth}(*args, &block)\n",
              "project_root": null,
              "filename": "commander/delegates.rb"
            },
            {
              "pre_context": [
                "      remove_global_options options, @args\n",
                "\n",
                "      begin\n"
              ],
              "post_context": [
                "      rescue InvalidCommandError => e\n",
                "        abort \"#{e}. Use --help for more information\"\n",
                "      rescue Interrupt => ex\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.41.2/lib/fastlane_core/ui/fastlane_runner.rb",
              "function": "run!",
              "lineno": 23,
              "in_app": false,
              "context_line": "        run_active_command\n",
              "project_root": null,
              "filename": "fastlane_core/ui/fastlane_runner.rb"
            },
            {
              "pre_context": [
                "      if alias? command_name_from_args\n",
                "        active_command.run(*(@aliases[command_name_from_args.to_s] + args_without_command_name))\n",
                "      else\n"
              ],
              "post_context": [
                "      end\n",
                "    end\n",
                "\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb",
              "function": "run_active_command",
              "lineno": 428,
              "in_app": false,
              "context_line": "        active_command.run(*args_without_command_name)\n",
              "project_root": null,
              "filename": "commander/runner.rb"
            },
            {
              "pre_context": [
                "    #\n",
                "\n",
                "    def run(*args)\n"
              ],
              "post_context": [
                "    end\n",
                "\n",
                "    #:stopdoc:\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb",
              "function": "run",
              "lineno": 153,
              "in_app": false,
              "context_line": "      call parse_options_and_call_procs(*args)\n",
              "project_root": null,
              "filename": "commander/command.rb"
            },
            {
              "pre_context": [
                "      meth = @when_called.shift || :call\n",
                "      options = proxy_option_struct\n",
                "      case object\n"
              ],
              "post_context": [
                "      when Class then meth != :call ? object.new.send(meth, args, options) : object.new(args, options)\n",
                "      else object.send(meth, args, options) if object\n",
                "      end\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb",
              "function": "call",
              "lineno": 178,
              "in_app": false,
              "context_line": "      when Proc then object.call(args, options)\n",
              "project_root": null,
              "filename": "commander/command.rb"
            },
            {
              "pre_context": [
                "      meth = @when_called.shift || :call\n",
                "      options = proxy_option_struct\n",
                "      case object\n"
              ],
              "post_context": [
                "      when Class then meth != :call ? object.new.send(meth, args, options) : object.new(args, options)\n",
                "      else object.send(meth, args, options) if object\n",
                "      end\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb",
              "function": "call",
              "lineno": 178,
              "in_app": false,
              "context_line": "      when Proc then object.call(args, options)\n",
              "project_root": null,
              "filename": "commander/command.rb"
            },
            {
              "pre_context": [
                "\n",
                "      c.action do |args, options|\n",
                "        if Fastlane::FastlaneFolder.setup?\n"
              ],
              "post_context": [
                "        else\n",
                "          create = agree('Could not find fastlane in current directory. Would you like to set it up? (y/n)'.yellow, true)\n",
                "          Fastlane::Setup.new.run if create\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/bin/fastlane",
              "function": "block (2 levels) in run",
              "lineno": 38,
              "in_app": false,
              "context_line": "          Fastlane::CommandLineHandler.handle(args, options)\n",
              "project_root": null,
              "filename": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/bin/fastlane"
            },
            {
              "pre_context": [
                "      end\n",
                "\n",
                "      dot_env = Helper.is_test? ? nil : options.env\n"
              ],
              "post_context": [
                "    end\n",
                "\n",
                "    # Helper to convert into the right data type\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/command_line_handler.rb",
              "function": "handle",
              "lineno": 30,
              "in_app": false,
              "context_line": "      Fastlane::LaneManager.cruise_lane(platform, lane, lane_parameters, dot_env)\n",
              "project_root": null,
              "filename": "fastlane/command_line_handler.rb"
            },
            {
              "pre_context": [
                "      started = Time.now\n",
                "      e = nil\n",
                "      begin\n"
              ],
              "post_context": [
                "      rescue => ex\n",
                "        UI.important 'Variable Dump:'.yellow\n",
                "        UI.message Actions.lane_context\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/lane_manager.rb",
              "function": "cruise_lane",
              "lineno": 46,
              "in_app": false,
              "context_line": "        ff.runner.execute(lane, platform, parameters)\n",
              "project_root": null,
              "filename": "fastlane/lane_manager.rb"
            },
            {
              "pre_context": [
                "      path_to_use = Fastlane::FastlaneFolder.path || Dir.pwd\n",
                "      parameters ||= {}\n",
                "      begin\n"
              ],
              "post_context": [
                "          # Call the platform specific before_all block and then the general one\n",
                "\n",
                "          before_all_blocks[current_platform].call(current_lane, parameters) if before_all_blocks[current_platform] && current_platform\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb",
              "function": "execute",
              "lineno": 46,
              "in_app": false,
              "context_line": "        Dir.chdir(path_to_use) do # the file is located in the fastlane folder\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "      path_to_use = Fastlane::FastlaneFolder.path || Dir.pwd\n",
                "      parameters ||= {}\n",
                "      begin\n"
              ],
              "post_context": [
                "          # Call the platform specific before_all block and then the general one\n",
                "\n",
                "          before_all_blocks[current_platform].call(current_lane, parameters) if before_all_blocks[current_platform] && current_platform\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb",
              "function": "chdir",
              "lineno": 46,
              "in_app": false,
              "context_line": "        Dir.chdir(path_to_use) do # the file is located in the fastlane folder\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "          before_all_blocks[current_platform].call(current_lane, parameters) if before_all_blocks[current_platform] && current_platform\n",
                "          before_all_blocks[nil].call(current_lane, parameters) if before_all_blocks[nil]\n",
                "\n"
              ],
              "post_context": [
                "\n",
                "          # `after_all` is only called if no exception was raised before\n",
                "          # Call the platform specific before_all block and then the general one\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb",
              "function": "block in execute",
              "lineno": 52,
              "in_app": false,
              "context_line": "          return_val = lane_obj.call(parameters) # by default no parameters\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "\n",
                "    # Execute this lane\n",
                "    def call(parameters)\n"
              ],
              "post_context": [
                "    end\n",
                "\n",
                "    # @return [String] The lane + name of the lane. If there is no platform, it will only be the lane name\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/lane.rb",
              "function": "call",
              "lineno": 36,
              "in_app": false,
              "context_line": "      block.call(parameters || {})\n",
              "project_root": null,
              "filename": "fastlane/lane.rb"
            },
            {
              "pre_context": [
                "\n",
                "    # Execute this lane\n",
                "    def call(parameters)\n"
              ],
              "post_context": [
                "    end\n",
                "\n",
                "    # @return [String] The lane + name of the lane. If there is no platform, it will only be the lane name\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/lane.rb",
              "function": "call",
              "lineno": 36,
              "in_app": false,
              "context_line": "      block.call(parameters || {})\n",
              "project_root": null,
              "filename": "fastlane/lane.rb"
            },
            {
              "abs_path": "Fastfile",
              "function": "block (2 levels) in parsing_binding",
              "lineno": 45,
              "in_app": false,
              "project_root": null,
              "filename": "Fastfile"
            },
            {
              "pre_context": [
                "      # confusing\n",
                "      if class_ref && class_ref.respond_to?(:run)\n",
                "        # Action is available, now execute it\n"
              ],
              "post_context": [
                "      else\n",
                "        UI.user_error!(\"Action '#{method_sym}' of class '#{class_name}' was found, but has no `run` method.\")\n",
                "      end\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/fast_file.rb",
              "function": "method_missing",
              "lineno": 149,
              "in_app": false,
              "context_line": "        return self.runner.execute_action(method_sym, class_ref, arguments)\n",
              "project_root": null,
              "filename": "fastlane/fast_file.rb"
            },
            {
              "pre_context": [
                "      verify_supported_os(method_sym, class_ref)\n",
                "\n",
                "      begin\n"
              ],
              "post_context": [
                "          Actions.execute_action(class_ref.step_text) do\n",
                "            # arguments is an array by default, containing an hash with the actual parameters\n",
                "            # Since we usually just need the passed hash, we'll just use the first object if there is only one\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb",
              "function": "execute_action",
              "lineno": 128,
              "in_app": false,
              "context_line": "        Dir.chdir(custom_dir) do # go up from the fastlane folder, to the project folder\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "      verify_supported_os(method_sym, class_ref)\n",
                "\n",
                "      begin\n"
              ],
              "post_context": [
                "          Actions.execute_action(class_ref.step_text) do\n",
                "            # arguments is an array by default, containing an hash with the actual parameters\n",
                "            # Since we usually just need the passed hash, we'll just use the first object if there is only one\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb",
              "function": "chdir",
              "lineno": 128,
              "in_app": false,
              "context_line": "        Dir.chdir(custom_dir) do # go up from the fastlane folder, to the project folder\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "\n",
                "      begin\n",
                "        Dir.chdir(custom_dir) do # go up from the fastlane folder, to the project folder\n"
              ],
              "post_context": [
                "            # arguments is an array by default, containing an hash with the actual parameters\n",
                "            # Since we usually just need the passed hash, we'll just use the first object if there is only one\n",
                "            if arguments.count == 0\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb",
              "function": "block in execute_action",
              "lineno": 129,
              "in_app": false,
              "context_line": "          Actions.execute_action(class_ref.step_text) do\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "\n",
                "      begin\n",
                "        UI.header(\"Step: \" + step_name) if step_name\n"
              ],
              "post_context": [
                "      rescue => ex\n",
                "        exc = ex\n",
                "        error = caller.join(\"\\n\") + \"\\n\\n\" + ex.to_s\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/actions/actions_helper.rb",
              "function": "execute_action",
              "lineno": 35,
              "in_app": false,
              "context_line": "        yield\n",
              "project_root": null,
              "filename": "fastlane/actions/actions_helper.rb"
            },
            {
              "pre_context": [
                "              UI.user_error!(\"You have to call the integration like `#{method_sym}(key: \\\"value\\\")`. Run `fastlane action #{method_sym}` for all available keys. Please check out the current documentation on GitHub.\")\n",
                "            end\n",
                "\n"
              ],
              "post_context": [
                "          end\n",
                "        end\n",
                "      rescue => ex\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/runner.rb",
              "function": "block (2 levels) in execute_action",
              "lineno": 143,
              "in_app": false,
              "context_line": "            class_ref.run(arguments)\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "        version_template_path = params[:version_template_path]\n",
                "        version_file_name = params[:version_file_name]\n",
                "\n"
              ],
              "post_context": [
                "        bucket = s3_client.buckets[s3_bucket]\n",
                "\n",
                "        url_part = self.expand_path_with_substitutions_from_ipa_plist(ipa_file, s3_path)\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/actions/s3.rb",
              "function": "run",
              "lineno": 70,
              "in_app": false,
              "context_line": "        s3_client = self.s3_client(s3_access_key, s3_secret_access_key, s3_region)\n",
              "project_root": null,
              "filename": "fastlane/actions/s3.rb"
            },
            {
              "pre_context": [
                "            region: s3_region\n",
                "          )\n",
                "        else\n"
              ],
              "post_context": [
                "            access_key_id: s3_access_key,\n",
                "            secret_access_key: s3_secret_access_key\n",
                "          )\n"
              ],
              "abs_path": "/Library/Ruby/Gems/2.0.0/gems/fastlane-1.81.0/lib/fastlane/actions/s3.rb",
              "function": "s3_client",
              "lineno": 209,
              "in_app": false,
              "context_line": "          s3_client = AWS::S3.new(\n",
              "project_root": null,
              "filename": "fastlane/actions/s3.rb"
            }
          ]
        }
      }
    ]
  }
}

Environment

fastlane version (run fastlane -v): fastlane 1.81.0

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? nope

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? nope

About this issue

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

Most upvoted comments

@pietrocaselani Thanks for following up. I circled back with the core team to take a look on this.