# Error while deploying to ItunesConnect

**URL:** <https://discuss.bitrise.io/t/error-while-deploying-to-itunesconnect/8476>\
**Category:** Question & Answer\
**Created:** [March 18, 2019, 9:45pm UTC](https://discuss.bitrise.io/t/error-while-deploying-to-itunesconnect/8476 "2019-03-18T21:45:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudymatos\_developer](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/rudymatos_developer/32/2135_2.png) [@rudymatos\_developer](https://discuss.bitrise.io/u/rudymatos_developer)\
**Post date:** [March 18, 2019, 9:45pm UTC](https://discuss.bitrise.io/t/error-while-deploying-to-itunesconnect/8476/1 "2019-03-18T21:45:22Z")

</div>

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](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](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](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](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](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…  
➡ 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](https://github.com/fastlane/fastlane/issues/13833) [closed] 25 💬  
5 weeks ago  
➡ Two factor authentication fails after 2.106.0  
[https://github.com/fastlane/fastlane/issues/13603](https://github.com/fastlane/fastlane/issues/13603) [closed] 14 💬  
3 weeks ago  
➡ Fastlane match template\_name  
[https://github.com/fastlane/fastlane/issues/11881](https://github.com/fastlane/fastlane/issues/11881) [closed] 6 💬  
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=✓](https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60strip%27%20for%20nil%0ADid%20you%20mean%3F%20%20String&type=Issues&utf8=%E2%9C%93)  
🔗 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 method`strip’ 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:in`get\_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:in`handle\_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:in`send\_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:in`do\_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:in`login’  
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:in`login’  
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:in`new’  
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:in`call’  
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:in`run\_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:in`run!’  
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:in`start’  
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](https://github.com/bitrise-io/steps-deploy-to-itunesconnect-deliver) |  
±–±--------------------------------------------------------------±---------+

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [March 19, 2019, 2:21pm UTC](https://discuss.bitrise.io/t/error-while-deploying-to-itunesconnect/8476/2 "2019-03-19T14:21:10Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [April 18, 2019, 2:21pm UTC](https://discuss.bitrise.io/t/error-while-deploying-to-itunesconnect/8476/3 "2019-04-18T14:21:13Z")

</div>

Closed on April 18, 2019, 2:21pm UTC

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