fastlane: [Regression] Build Fails with an Invalid 2 step response Error

New Issue Checklist

Issue Description

When running a lane, the build is crashing after getting to the step where it tries to log into iTunes (App Store) Connect. As you can see in the stack trace, it gives an error about an “Invalid 2 step response” and the error message includes a JSON payload - I assume from Apple - with previously answered security questions.

We didn’t have this issue after updating to fastlane 1.102.0 on 8/29/18. I tried updating to fastlane 1.103.0, but am still running into the error.

Complete output when running fastlane, including the stack trace and command used
[15:41:27]: Running lane `ios development`. Next time you can do this by directly typing `fastlane ios development` 🚀.
[15:41:27]: Driving the lane 'ios development' 🚀
[15:41:27]: -----------------------
[15:41:27]: --- Step: cocoapods ---
[15:41:27]: -----------------------
[15:41:27]: $ pod install
[15:41:30]: ▸ [!] The version of CocoaPods used to generate the lockfile (1.4.0) is higher than the version of the current executable (1.3.1). Incompatibility issues may arise.
[15:41:46]: ▸ Analyzing dependencies
[15:41:46]: ▸ Downloading dependencies
[15:41:46]: ▸ Using AFNetworking (3.1.0)
[15:41:46]: ▸ Using CLTokenInputView (2.3.0)
[15:41:46]: ▸ Using Crashlytics (3.9.3)
[15:41:46]: ▸ Using EDColor (1.0.1)
[15:41:46]: ▸ Using EDSemver (0.4.0)
[15:41:46]: ▸ Using Expecta (1.0.6)
[15:41:46]: ▸ Using Fabric (1.7.2)
[15:41:46]: ▸ Using FirebaseAnalytics (3.9.0)
[15:41:46]: ▸ Using FirebaseCore (3.6.0)
[15:41:46]: ▸ Using FirebaseInstanceID (1.0.10)
[15:41:46]: ▸ Using Google (3.1.0)
[15:41:46]: ▸ Using GoogleAnalytics (3.17.0)
[15:41:46]: ▸ Using GoogleToolboxForMac (2.1.3)
[15:41:46]: ▸ Using LoopBack (1.3.0)
[15:41:46]: ▸ Using MBProgressHUD (1.1.0)
[15:41:46]: ▸ Using Mantle (2.1.0)
[15:41:46]: ▸ Using OCMock (3.4.1)
[15:41:46]: ▸ Using OHHTTPStubs (6.0.0)
[15:41:46]: ▸ Using ObjectiveSugar (1.1.0)
[15:41:46]: ▸ Using PromiseKit (4.5.2)
[15:41:46]: ▸ Using Realm (3.0.2)
[15:41:46]: ▸ Using Specta (1.0.7)
[15:41:46]: ▸ Using TestFairy (1.11.0)
[15:41:46]: ▸ Using UICKeyChainStore (2.1.1)
[15:41:46]: ▸ Using UIImage+PDF (1.1.3)
[15:41:46]: ▸ Using URBMediaFocusViewController (0.9.0)
[15:41:46]: ▸ Using google-cast-remote-display-sdk (2.10.4)
[15:41:46]: ▸ Using google-cast-sdk (2.10.4.1)
[15:41:46]: ▸ Using libextobjc (0.4.1)
[15:41:46]: ▸ Generating Pods project
[15:41:46]: ▸ Integrating client project
[15:41:47]: ▸ Sending stats
[15:41:47]: ▸ Pod installation complete! There are 25 dependencies from the Podfile and 29 total pods installed.
[15:41:47]: ▸ [!] The `XXXXXXX [Production]` target overrides the `DEBUG_INFORMATION_FORMAT` build setting defined in `Pods/Target Support Files/Pods-XXXXXXX/Pods-XXXXXXX.production.xcconfig'. This can lead to problems with the CocoaPods installation
[15:41:47]: ▸ [!] The `XXXXXXX [Development]` target overrides the `DEBUG_INFORMATION_FORMAT` build setting defined in `Pods/Target Support Files/Pods-XXXXXXX/Pods-XXXXXXX.development.xcconfig'. This can lead to problems with the CocoaPods installation
[15:41:47]: ▸ [!] The `XXXXXXXTests [Development]` target overrides the `DEBUG_INFORMATION_FORMAT` build setting defined in `Pods/Target Support Files/Pods-XXXXXXXTests/Pods-XXXXXXXTests.development.xcconfig'. This can lead to problems with the CocoaPods installation
[15:41:47]: ▸ [!] The `XXXXXXXTests [Production]` target overrides the `DEBUG_INFORMATION_FORMAT` build setting defined in `Pods/Target Support Files/Pods-XXXXXXXTests/Pods-XXXXXXXTests.production.xcconfig'. This can lead to problems with the CocoaPods installation
[15:41:47]: ▸ [!] The `XXXXXXXUITests [Development]` target overrides the `DEBUG_INFORMATION_FORMAT` build setting defined in `Pods/Target Support Files/Pods-XXXXXXXUITests/Pods-XXXXXXXUITests.development.xcconfig'. This can lead to problems with the CocoaPods installation
[15:41:47]: ▸ [!] The `XXXXXXXUITests [Production]` target overrides the `DEBUG_INFORMATION_FORMAT` build setting defined in `Pods/Target Support Files/Pods-XXXXXXXUITests/Pods-XXXXXXXUITests.production.xcconfig'. This can lead to problems with the CocoaPods installation
[15:41:47]: ▸ [!] Google has been deprecated
[15:41:47]: ▸ - Use the `$(inherited)` flag, or
[15:41:47]: ▸ - Remove the build settings from the target.
[15:41:47]: ▸ - Use the `$(inherited)` flag, or
[15:41:47]: ▸ - Remove the build settings from the target.
[15:41:47]: ▸ - Use the `$(inherited)` flag, or
[15:41:47]: ▸ - Remove the build settings from the target.
[15:41:47]: ▸ - Use the `$(inherited)` flag, or
[15:41:47]: ▸ - Remove the build settings from the target.
[15:41:47]: ▸ - Use the `$(inherited)` flag, or
[15:41:47]: ▸ - Remove the build settings from the target.
[15:41:47]: ▸ - Use the `$(inherited)` flag, or
[15:41:47]: ▸ - Remove the build settings from the target.
[15:41:47]: ------------------
[15:41:47]: --- Step: sigh ---
[15:41:47]: ------------------

±------------------------------------±--------------------------+ | Summary for sigh 2.103.0 | ±------------------------------------±--------------------------+ | app_identifier | xxx.xxxxxxxxxxxx.ios | | username | xxxxxxx@xxxxxx.xxx | | provisioning_name | XXXX XXXXX XXXX XX XXXXX | | | xxx.xxxxxxxxxxxx.ios | | adhoc | false | | development | false | | skip_install | false | | force | false | | team_id | XXXXXXXXXX | | ignore_profiles_with_different_name | false | | skip_fetch_profiles | false | | skip_certificate_verification | false | | platform | ios | | readonly | false | ±------------------------------------±--------------------------+

[15:41:47]: Starting login with user ‘xxxxxxx@xxxxxx.xxx’ Service key is empty [15:41:52]: ------------------- [15:41:52]: — Step: slack — [15:41:52]: ------------------- [15:41:53]: Successfully sent Slack notification ±-----------------±----------------+ | Lane Context | ±-----------------±----------------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | ios | | LANE_NAME | ios development | ±-----------------±----------------+ [15:41:53]: Invalid 2 step response {“securityQuestions”=>{“questions”=>[{“id”=>135, “question”=>“What is the last name of your favorite elementary school teacher?”, “number”=>1, “userDefined”=>false}, {“id”=>144, “question”=>“What is the name of the street where you grew up?”, “number”=>3, “userDefined”=>false}]}, “crResetEnabled”=>false, “resetSecurityQuestionsSupportLink”=>“http://support.apple.com/kb/HT6170”}

±-----±--------------------±------------+ | fastlane summary | ±-----±--------------------±------------+ | Step | Action | Time (in s) | ±-----±--------------------±------------+ | 1 | Verifying fastlane | 0 | | | version | | | 2 | default_platform | 0 | | 3 | cocoapods | 19 | | 💥 | sigh | 5 | | 5 | slack | 0 | ±-----±--------------------±------------+

[15:41:53]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane…

/Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/two_step_client.rb:45:in handle_two_step': [!] Invalid 2 step response {"securityQuestions"=>{"questions"=>[{"id"=>135, "question"=>"What is the last name of your favorite elementary school teacher?", "number"=>1, "userDefined"=>false}, {"id"=>144, "question"=>"What is the name of the street where you grew up?", "number"=>3, "userDefined"=>false}]}, "crResetEnabled"=>false, "resetSecurityQuestionsSupportLink"=>"http://support.apple.com/kb/HT6170"} (RuntimeError) from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/client.rb:463:in send_shared_login_request’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/portal/portal_client.rb:28:in send_login_request' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/client.rb:664:in do_login’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/client.rb:363:in login' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/client.rb:71:in login’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/portal/spaceship.rb:25:in login' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/portal/spaceship.rb:103:in login’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/sigh/lib/sigh/runner.rb:19:in run' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/sigh/lib/sigh/manager.rb:8:in start’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/actions/get_provisioning_profile.rb:19:in run' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:253:in block (2 levels) in execute_action’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:232:in block in execute_action’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:227:in chdir' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:227:in execute_action’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/fast_file.rb:149:in method_missing’ from Fastfile:40:in block (2 levels) in parsing_binding' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/lane.rb:33:in call’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/lane.rb:33:in call' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:49:in block in execute’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:45:in chdir' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:45:in execute’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/lane_manager.rb:56:in cruise_lane' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/commands_generator.rb:108:in block (2 levels) in run' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:74:in run!’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/commands_generator.rb:333:in run’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/commands_generator.rb:41:in start' from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in take_off’ from /Users/ci/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.0/bin/fastlane:20:in <top (required)>' from /Users/ci/.fastlane/bin/bundle/bin/fastlane:22:in load’ from /Users/ci/.fastlane/bin/bundle/bin/fastlane:22:in `<main>’

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 10.13.3
Ruby 2.2.4
Bundler? false
Git git version 2.15.2 (Apple Git-101.1)
Installation Source ~/.fastlane/bin/bundle/bin/fastlane
Host Mac OS X 10.13.3 (17D47)
Ruby Lib Dir ~/.fastlane/bin/bundle/lib
OpenSSL Version OpenSSL 1.0.2g 1 Mar 2016
Is contained true
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 9.4.1

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE en_US.UTF-8

fastlane files:

`./fastlane/Fastfile`
require 'json'

# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.56.0"

default_platform :ios

# Test Fairy URL
build_url = "https://XXXXXX.testfairy.com"

# Fixed build version minimum
build_version_minimum = "1.0.0"

platform :ios do
  before_all do
    cocoapods
  end

  desc "Runs all the tests"
  lane :test do
    scan
  end

  desc "Compile a new Build for Development"
  desc "This will also make sure the profile is up to date"
  lane :development do

    sigh(
      app_identifier: "XXX.XXXXXXXXXXXX.XXX",
      username: "XXXXXXX@XXXXXX.XXX",
      output_path: "../../builds",
      provisioning_name: "XXXX XXXXX XXX XX XXXXX XXX.XXXXXXXXXXXX.ios"
    )

    # Add new-line to files. This can be handy for pods
    # sh "./add-newline.sh"

    gym(
      scheme: "Development",
      workspace: "XXXXXXX.xcworkspace",
      sdk: "iphoneos",
      clean: true,
      output_directory: "../../builds",
      output_name: "XXXXXXXXXXX-debug.ipa",
      export_method: "enterprise"
    )

    # desc "Upload to Test Fairy"
    testfairy(api_key: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      ipa: "../../builds/XXXXXXXXXXX-debug.ipa",
      auto_update: "off",
      notify: "on",
      testers_groups: "XXXXXXX",
      comment: "XXXXXXXXXXX debug."
    )

    # desc "Build URL"
    build_url = lane_context[SharedValues::TESTFAIRY_BUILD_URL]
    
    # EX: 2017-11-08T16:27:29.582Z
    build_date = Time.new.strftime("%Y-%m-%dT%H:%M:%S%z")
    # Build number
    build_number = get_build_number(xcodeproj: "XXXXXXX.xcodeproj")
    # SEMVER version number
    build_version = get_version_number(xcodeproj: "XXXXXXX.xcodeproj")
    # version file dictionary
    versionHash = {
        "current" => build_version,
        "buildDate" => build_date,
        "minimum" => build_version_minimum
    }
    
    # Write the file to disk
    File.open("../../../builds/ios.version.json","w") do |f|
        f.write(versionHash.to_json)
    end
  end

  desc "Compile and Sanity Check a new Build for Production"
  desc "This will also make sure the profile is up to date"
  lane :sanitycheck do
    slack(
      message: "SANITYCHECK build started for XXX.XXXXXXXXXXXX.XXX to verify integrity."
    )

    sigh(
      app_identifier: "XXX.XXXXXXXXXXXX.ios",
      username: "XXXXXXX@XXXXXX.XXX",
      output_path: "../../builds",
      provisioning_name: "XXXX XXXXX XXX XX XXXXX XXX.XXXXXXXXXXXX.ios"
   )

    gym(
      scheme: "Production",
      workspace: "XXXXXXXXX.xcworkspace",
      sdk: "iphoneos",
      clean: true,
      output_directory: "../../builds",
      output_name: "XXXXXXXXXXX-sanitycheck.ipa",
      export_method: "enterprise",
      export_options: {
        manifest: {
          appURL: "https://XXXXXXXXXXXX.com/asset/downloads/XXXXXXXXXXX-sanitycheck.ipa",
          displayImageURL: "https://XXXXXXXXXXXX.com/asset/images/logo-XXXX.svg",
          fullSizeImageURL: "https://XXXXXXXXXXXX.com/asset/images/logo-XXXX.svg"
        }
      }
    )
    
    # desc "Rename the manifest file to the indended destination file"
    sh "mv ../../../builds/manifest.plist ../../../builds/XXXXXXXXXXX-sanitycheck.plist"

  end

  desc "Compile a new Build for Production"
  desc "This will also make sure the profile is up to date"
  lane :production do

    sigh(
      app_identifier: "XXX.XXXXXXXXXXXX.ios",
      username: "XXXXXXX@XXXXXX.XXX",
      output_path: "../../builds",
      provisioning_name: "XXXX XXXXX XXX XX XXXXX XXX.XXXXXXXXXXXX.ios"
    )

    # Add new-line to files. This can be handy for pods
    # sh "./add-newline.sh"

    gym(
      scheme: "Production",
      workspace: "XXXXXXXXX.xcworkspace",
      sdk: "iphoneos",
      clean: true,
      output_directory: "../../builds",
      output_name: "XXXXXXXXXXX-release.ipa",
      export_method: "enterprise",
      export_options: {
        manifest: {
          appURL: "https://XXXXXXXXXXXX.com/asset/downloads/XXXXXXXXXXX-release.ipa",
          displayImageURL: "https://XXXXXXXXXXXX.com/asset/images/logo-XXXX.svg",
          fullSizeImageURL: "https://XXXXXXXXXXXX.com/asset/images/logo-XXXX.svg"
          }
      }
    )

    # desc "Rename the manifest file to the indended destination file"
    sh "mv ../../../builds/manifest.plist ../../../builds/XXXXXXXXXXX-release.plist"

    # desc "Upload to Test Fairy"
    testfairy(api_key: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      ipa: "../../builds/XXXXXXXXXXX-release.ipa",
      auto_update: "off",
      notify: "on",
      testers_groups: "XXXXXXXXXXXX, iOS-XXXXXXXXXXXX-Production",
      comment: "XXXXXXXXXXX release."
    )

    # desc "Build URL"
    build_url = lane_context[SharedValues::TESTFAIRY_BUILD_URL]
    
    # Version file information
    # For writing file version information
    # {
    #   "current": "1.0.0",
    #   "buildDate": "2017-11-08T16:27:29.582Z",
    #   "minimum": "1.0.0"
    # }
    
    # EX: 2017-11-08T16:27:29.582Z
    build_date = Time.new.strftime("%Y-%m-%dT%H:%M:%S%z")
    # Build number
    build_number = get_build_number(xcodeproj: "XXXXXXXXX.xcodeproj")
    # SEMVER version number
    build_version = get_version_number(xcodeproj: "XXXXXXXXX.xcodeproj")
    # version file dictionary
    versionHash = {
        "current" => build_version,
        "buildDate" => build_date,
        "minimum" => build_version_minimum
    }
    
    # Write the file to disk
    File.open("../../../builds/ios.version.json","w") do |f|
        f.write(versionHash.to_json)
    end
    
  end


  desc "Submit a new Beta Build to Apple TestFlight"
  desc "This will also make sure the profile is up to date"
  lane :beta do
    # match(type: "appstore") # more information: https://codesigning.guide
    gym # Build your app - more options available
    pilot

    # sh "your_script.sh"
    # You can also use other beta testing services here (run `fastlane actions`)
  end

  desc "Deploy a new version to the App Store"
  lane :release do
    # match(type: "appstore")
    # snapshot
    gym # Build your app - more options available
    deliver(force: true)
    # frameit
  end

  # You can define as many lanes as you want

  after_all do |lane|
    # This block is called, only if the executed lane was successful

     slack(
       message: "Successfully ran lane #{lane} with Test Fairy build URL #{build_url}",
       success: true
     )
  end

  error do |lane, exception|
     slack(
       message: exception.message,
       success: false
     )
  end
end


# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://docs.fastlane.tools/actions

# fastlane reports which actions are used
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer

`./fastlane/Appfile`
app_identifier "XXX.XXXXXXXXXXXX.ios" # The bundle identifier of your app
apple_id "XXXXXXX@XXXXXX.XXX" # Your Apple email address

team_id "XXXXXXXXXX"  # Developer Portal Team ID

# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md

fastlane gems

Gem Version Update-Status
fastlane 2.103.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
CFPropertyList 2.3.5
activesupport 4.2.9
addressable 2.5.1
atomos 0.1.3
babosa 1.0.2
bigdecimal 1.2.6
bundler 1.14.6
claide 1.0.2
cocoapods 1.3.1
cocoapods-core 1.3.1
cocoapods-deintegrate 1.0.1
cocoapods-downloader 1.1.3
cocoapods-plugins 1.0.0
cocoapods-search 1.0.0
cocoapods-stats 1.0.0
cocoapods-trunk 1.2.0
cocoapods-try 1.1.0
colored 1.2
colored2 3.1.2
commander-fastlane 4.4.6
concurrent-ruby 1.0.5
declarative 0.0.9
declarative-option 0.1.0
domain_name 0.5.20170404
dotenv 2.2.0
emoji_regex 0.1.1
escape 0.0.4
excon 0.55.0
faraday 0.12.1
faraday-cookie_jar 0.0.6
faraday_middleware 0.11.0.1
fastimage 2.1.0
fourflusher 2.0.1
fuzzy_match 2.0.4
gh_inspector 1.1.2
google-api-client 0.21.2
googleauth 0.5.1
highline 1.7.8
http-cookie 1.0.3
httpclient 2.8.3
hurley 0.2
i18n 0.8.6
io-console 0.4.3
json 1.8.1
jwt 1.5.6
libxml-ruby 3.0.0
little-plugger 1.1.4
logging 2.2.2
memoist 0.15.0
mime-types 3.1
mime-types-data 3.2016.0521
mini_magick 4.5.1
minitest 5.4.3
molinillo 0.5.7
multi_json 1.12.1
multi_xml 0.6.0
multipart-post 2.0.0
nanaimo 0.2.6
nap 1.1.0
naturally 2.1.0
netrc 0.7.8
nokogiri 1.5.6
os 0.9.6
plist 3.2.0
power_assert 0.2.2
psych 2.0.8
public_suffix 2.0.5
rake 10.4.2
rdoc 4.2.0
representable 3.0.4
retriable 2.1.0
rouge 2.0.7
ruby-macho 1.1.0
rubygems-update 2.5.2
rubyzip 1.2.1
security 0.1.3
signet 0.7.3
simctl 1.6.4
slack-notifier 2.3.2
sqlite3 1.3.13
terminal-notifier 1.7.1
terminal-table 1.7.3
test-unit 3.0.8
thread_safe 0.3.6
tty-cursor 0.5.0
tty-screen 0.6.3
tty-spinner 0.8.0
tzinfo 1.2.3
uber 0.0.15
unf 0.1.4
unf_ext 0.0.7.4
unicode-display_width 1.1.3
word_wrap 1.0.0
xcodeproj 1.6.0
xcpretty 0.3.0
xcpretty-travis-formatter 0.0.4

generated on: 2018-09-04

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 31 (12 by maintainers)

Most upvoted comments

I’m seeing this as well, looks similar to #12515. I’m working on a solution — without any roadblocks it should be ready in a few hours.

Have the same issue, all CI builds suddenly started failing an hour ago a so. The account has the two-step auth disabled.

[1] pry(#<Spaceship::Playground>)> Spaceship.login
Service key is empty
RuntimeError: Invalid 2 step response {"securityQuestions"=>{"questions"=>[{"id"=>138,
 "question"=>**********, "number"=>2, "userDefined"=>false}, {"id"=>130, "question"=>"********",
 "number"=>1, "userDefined"=>false}]}, "rescueEmailAddress"=>"********", "crResetEnabled"=>false, 
"resetSecurityQuestionsSupportLink"=>"http://support.apple.com/kb/HT6170"}
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/two_step_client.rb:45:in
 `handle_two_step'

Reverting to “2.102.0” solved the issue.

$ sudo gem uninstall fastlane
$ sudo gem install fastlane -NV -v 2.102.0

Just wanted to drop this here! If anybody is looking for a quick and short term solution, downgrading back to 2.102.0 should make things work.

We are currently testing fixes made in #13291. If anybody would like to test this out with us to verify that things work, that would be 💯 You will need to update your Gemfile to look like…

gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "joshdholtz-use-itunesconnect-in-olympus-hostname"

Once things are look 👌 we will pop out a new release for 2.103.1

It’s working for me via VSTS! Thanks for the quick turnaround.

I have update from 2.103.0 to 2.103.1 and it is working on CI (bitrise). Thankyou

It’s working for me! 👍

Looks like this change is breaking it? https://github.com/fastlane/fastlane/commit/a556c8ba62f762a502b43c2d38e6a7e223425747#diff-a9086da2d7e8a66b647fdabdb0a7cca7

I started running into this issue after updating to 2.103.0, today. I tried resetting my security questions & answers after started receiving this error, but still no luck. This was the error -

[fastlane] Service key is empty
[fastlane] Looking for related GitHub issues on fastlane/fastlane...
[fastlane] /Users/panne/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fastlane-2.103.0/spaceship/lib/spaceship/two_step_client.rb:45:in `handle_two_step': [!] Invalid 2 step response {"securityQuestions"=>{"questions"=>[{"id"=>***, "question"=>"***?", "number"=>***, "userDefined"=>false}, {"id"=>***, "question"=>"***", "number"=>***, "userDefined"=>false}]}, "crResetEnabled"=>false, "resetSecurityQuestionsSupportLink"=>"http://support.apple.com/kb/HT6170"} (RuntimeError)

I changed the url back to the old one, and fastlane is working fine.

@joshdholtz @chronweigle fyi 😊 👋

I’m also seeing the problem. My account has 2FA disabled and I’m still getting the error Invalid 2 step response {"securityQuestions"

The prompt for the Specific App Password is not working when using deliver. It only works if the FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD env variable is set.

Not a deal breaker, but still, not working as before.

Log (with info obscured, of course)

[11:45:17]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[11:45:24]: Login to App Store Connect (********)
[11:45:37]: Login successful

+--------------------------------------+--------------------------------------+
|                           deliver 2.103.1 Summary                           |
+--------------------------------------+--------------------------------------+
| ipa                                  | **********                           |
| force                                | true                                 |
| skip_screenshots                     | true                                 |
| skip_metadata                        | true                                 |
| username                             | **********                           |
| app_identifier                       | **********                           |
|                                      | iphone                               |
| run_precheck_before_submit           | false                                |
| screenshots_path                     | ./screenshots                        |
| metadata_path                        | ./metadata                           |
| app_version                          | 999999                               |
| platform                             | ios                                  |
| edit_live                            | false                                |
| use_live_version                     | false                                |
| skip_binary_upload                   | false                                |
| skip_app_version_update              | false                                |
| overwrite_screenshots                | false                                |
| submit_for_review                    | false                                |
| reject_if_possible                   | false                                |
| automatic_release                    | false                                |
| phased_release                       | false                                |
| precheck_default_rule_level          | warn                                 |
| ignore_language_directory_validatio  | false                                |
| n                                    |                                      |
| precheck_include_in_app_purchases    | true                                 |
+--------------------------------------+--------------------------------------+

[11:45:45]: Making sure the latest version on App Store Connect matches '999999' from the ipa file...
[11:45:49]: '999999' is the latest version on App Store Connect
[11:45:57]: Uploading binary to App Store Connect
[11:46:49]: Going to upload updated app to App Store Connect
[11:46:49]: This might take a few minutes. Please don't interrupt the script.
[11:46:58]: [Transporter Error Output]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)
[11:46:58]: Transporter transfer failed.
[11:46:58]:
[11:46:58]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)

Looking for related GitHub issues on fastlane/fastlane...

➡️  AGV enabled check fails
    https://github.com/fastlane/fastlane/issues/9506 [closed] 33 💬
    04 Oct 2017

➡️  The App Name you entered has already been used.
    https://github.com/fastlane/fastlane/issues/8079 [closed] 6 💬
    03 May 2017

➡️  pilot crashes on upload
    https://github.com/fastlane/fastlane/issues/4821 [closed] 24 💬
    28 Jan 2017

and 3 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60zero%3F%27%20for%20nil&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
/Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:67:in `execute': [!] undefined method `zero?' for nil:NilClass (NoMethodError)
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:287:in `block in execute'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/2.2.0/fileutils.rb:127:in `chdir'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/2.2.0/fileutils.rb:127:in `cd'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:286:in `execute'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:380:in `upload'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/deliver/lib/deliver/runner.rb:160:in `upload_binary'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/deliver/lib/deliver/runner.rb:42:in `run'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/deliver/lib/deliver/commands_generator.rb:79:in `block (2 levels) in run'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:74:in `run!'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/deliver/lib/deliver/commands_generator.rb:182:in `run'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/deliver/lib/deliver/commands_generator.rb:17:in `start'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/cli_tools_distributor.rb:100:in `take_off'
	from /Users/jhoon/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.103.1/bin/fastlane:20:in `<top (required)>'
	from /Users/jhoon/.fastlane/bin/bundle/bin/fastlane:22:in `load'
	from /Users/jhoon/.fastlane/bin/bundle/bin/fastlane:22:in `<main>'

All good for me too!

Everything seems to be back in working order. Thank you for the speedy turnaround!

All good here now as well.

Yep, it’s working for us (using Bitrise). Thanks for the quick fix!

It is now working again. Thanks a lot awesome people!

I am facing the same issue.