Error while deploying to ItunesConnect

I’m getting the following error when trying to upload package to itunes connect which breaks the worklow.

±-----------------------------------------------------------------------------+

| (6) deploy-to-itunesconnect-deliver@2.14.1 |
±-----------------------------------------------------------------------------+
| id: deploy-to-itunesconnect-deliver |
| version: 2.14.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2019-03-18T14:34:49-07:00 |
±-----------------------------------------------------------------------------+
| |
INFO[14:34:49] * [OK] Step dependency (go) installed, available.
Configs:

  • IpaPath: /Users/vagrant/deploy/***.ipa
  • PkgPath:
  • ItunesconUser: [REDACTED]
  • Password: ***
  • AppPassword: ***
  • AppID: ***
  • BundleID: ***
  • SubmitForReview: no
  • SkipMetadata: yes
  • SkipScreenshots: yes
  • SkipAppVersionUpdate: no
  • TeamID: ***
  • TeamName: ***
  • Platform: ios
  • Options:
  • GemfilePath: ./Gemfile
  • FastlaneVersion: latest
  • ITMSParameters: -t DAV
    Setup
    fastlane version defined: latest, installing…
    $ fastlane “-v”
    fastlane installation at path:
    /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/bin/fastlane

fastlane 2.118.1
Setup took 12.527487 seconds to complete
Deploy
Note: if your password
contains special characters
and you experience problems, please
consider changing your password
to something with only
alphanumeric characters.
Be advised log.Printf(that this
step uses a well maintained, open source tool which
uses undocumented and unsupported APIs (because the current
iTunes Connect platform does not have a documented and supported API)
to perform the deployment.
This means that when the API changes
this step might fail until the tool is updated.
AppID parameter specified, BundleID will be ignored
TeamName parameter specified, TeamID will be ignored
$ fastlane “deliver” “–username” “[REDACTED]” “–app” “***” “–team_name” “***” “–ipa” “/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/ipaOrPkg970560518/tmp.ipa” “–skip_screenshots” “–skip_metadata” “–force” “–platform” “ios”
[14:35:10]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[14:35:12]: Sending anonymous analytics information
[14:35:12]: Learn more at https://docs.fastlane.tools/#metrics
[14:35:12]: No personal or sensitive data is sent.
[14:35:12]: You can disable this by adding opt_out_usage at the top of your Fastfile
[14:35:12]: Login to App Store Connect ([REDACTED])
Two-factor Authentication (6 digits code) is enabled for account ‘[REDACTED]’
More information about Two-factor Authentication: https://support.apple.com/en-us/HT204915
If you’re running this in a non-interactive session (e.g. server or CI)
check out https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification
(Input sms to escape this prompt and select a trusted phone number to send the code as a text message)
Please enter the 6 digit code:
Looking for related GitHub issues on fastlane/fastlane…
:arrow_right: Two factor sessions only lasting a few hours / “Session loaded from environment variable is not valid. Continuing with normal login.”
https://github.com/fastlane/fastlane/issues/13833 [closed] 25 :speech_balloon:
5 weeks ago
:arrow_right: Two factor authentication fails after 2.106.0
https://github.com/fastlane/fastlane/issues/13603 [closed] 14 :speech_balloon:
3 weeks ago
:arrow_right: Fastlane match template_name
https://github.com/fastlane/fastlane/issues/11881 [closed] 6 :speech_balloon:
22 May 2018
and 2 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20`strip’%20for%20nil Did%20you%20mean%3F%20%20String&type=Issues&utf8=✓
:link: You can ⌘ + double-click on links to open them directly in your browser.
/usr/local/lib/ruby/gems/2.5.0/gems/highline-1.7.10/lib/highline/question.rb:413:in remove_whitespace': [!] undefined methodstrip’ for nil:NilClass (NoMethodError)
Did you mean? String
from /usr/local/lib/ruby/gems/2.5.0/gems/highline-1.7.10/lib/highline.rb:873:in get_line' from /usr/local/lib/ruby/gems/2.5.0/gems/highline-1.7.10/lib/highline.rb:891:inget_response’
from /usr/local/lib/ruby/gems/2.5.0/gems/highline-1.7.10/lib/highline.rb:264:in ask' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/spaceship/lib/spaceship/two_step_or_factor_client.rb:128:inhandle_two_factor’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/spaceship/lib/spaceship/two_step_or_factor_client.rb:20:in handle_two_step_or_factor' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/spaceship/lib/spaceship/client.rb:494:insend_shared_login_request’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/spaceship/lib/spaceship/tunes/tunes_client.rb:127:in send_login_request' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/spaceship/lib/spaceship/client.rb:769:indo_login’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/spaceship/lib/spaceship/client.rb:384:in login' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/spaceship/lib/spaceship/client.rb:346:inlogin’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/spaceship/lib/spaceship/tunes/spaceship.rb:24:in login' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/deliver/lib/deliver/runner.rb:31:inlogin’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/deliver/lib/deliver/runner.rb:23:in initialize' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/deliver/lib/deliver/commands_generator.rb:79:innew’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/deliver/lib/deliver/commands_generator.rb:79:in block (2 levels) in run' from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:incall’
from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run' from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:inrun_active_command’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:inrun!’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/deliver/lib/deliver/commands_generator.rb:182:in run' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/deliver/lib/deliver/commands_generator.rb:17:instart’
from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in take_off' from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.118.1/bin/fastlane:23:in<top (required)>’
from /usr/local/bin/fastlane:23:in load' from /usr/local/bin/fastlane:23:in
Deploy failed, error: exit status 1
| |
±–±--------------------------------------------------------------±---------+
| x | deploy-to-itunesconnect-deliver@2.14.1 (exit code: 1) | 28 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: …om/bitrise-io/steps-deploy-to-itunesconnect-deliver/issues |
| Source: https://github.com/bitrise-io/steps-deploy-to-itunesconnect-deliver |
±–±--------------------------------------------------------------±---------+

Hi there,

We’re seeing a lot of issues with the step lately due to the 2FA enforcement, so for now we are highly recommending using our Application Loader step for Deployment instead - that is if you do not have screenshots or metadata to deploy as well.

In any event please include a build URL we could take a look at!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.