# Deploy to iTunes Connect

**URL:** <https://discuss.bitrise.io/t/deploy-to-itunes-connect/8509>\
**Category:** Tooling Issues\
**Created:** [March 22, 2019, 1:09am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect/8509 "2019-03-22T01:09:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigescalade](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bigescalade](https://discuss.bitrise.io/u/bigescalade)\
**Post date:** [March 22, 2019, 1:09am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect/8509/1 "2019-03-22T01:09:10Z")

</div>

Hello,

Now that apple has enforced 2fa the step Deploy to iTunes Connect fails for me. I have connected the developer account and authenticated via 2fa but that doesn’t fix it. The error I get is

`/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)`

I tried moving to Deploy to iTunes Connect - Application Loader but I’m unable to because it forces me to use secret vars (we use a local bitrise.yml file and our secret vars are on bitrise)

Link to latest failed build [https://app.bitrise.io/build/afad6dd4cd5ebe51](https://app.bitrise.io/build/afad6dd4cd5ebe51)

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [March 22, 2019, 8:46am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect/8509/2 "2019-03-22T08:46:31Z")

</div>

Hy there, You should provide the account name and password and also the app specific password to be able to deploy if Im correct.

---

<div class="post-metadata">

**Author:** ![BirmacherAkos](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/birmacherakos/32/1319_2.png) [@BirmacherAkos](https://discuss.bitrise.io/u/BirmacherAkos)\
**Post date:** [March 22, 2019, 4:13pm UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect/8509/4 "2019-03-22T16:13:00Z")

</div>

Hi!

The new version [(2.15.0)](https://github.com/bitrise-io/steps-deploy-to-itunesconnect-deliver/releases/2.15.0) of the Deploy to iTunes Connect Deliver step will support the 2fa for the Apple developer account (it will be available in the next hours).

* * *

“I tried moving to Deploy to iTunes Connect - Application Loader but I’m unable to because it forces me to use secret vars (we use a local bitrise.yml file and our secret vars are on bitrise)”

- If you want to run your build locally you can create a `.bitrise.secrets.yml` with your secrets next to your Bitrise.yml.  
[https://devcenter.bitrise.io/bitrise-cli/secrets/](https://devcenter.bitrise.io/bitrise-cli/secrets/)

- If you store your bitrise.yml in your repo it’s still not a problem.  
The website will send down the secrets to the VM from the [Bitrise.io](http://Bitrise.io) so your bitrise.yml from your repo will use them just like if you store your bitrise.yml on Bitrise.

---

<div class="post-metadata">

**Author:** ![bigescalade](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bigescalade](https://discuss.bitrise.io/u/bigescalade)\
**Post date:** [March 25, 2019, 5:27am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect/8509/5 "2019-03-25T05:27:07Z")

</div>

Thanks for the reply, I will update the next time we need to deploy to the store!

---

<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 24, 2019, 5:27am UTC](https://discuss.bitrise.io/t/deploy-to-itunes-connect/8509/6 "2019-04-24T05:27:11Z")

</div>

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