# App Secrets not available in build

**URL:** <https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737>\
**Category:** Question & Answer\
**Tags:** ios\
**Created:** [April 6, 2018, 3:58pm UTC](https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737 "2018-04-06T15:58:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityac26](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@adityac26](https://discuss.bitrise.io/u/adityac26)\
**Post date:** [April 6, 2018, 3:58pm UTC](https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737/1 "2018-04-06T15:58:34Z")

</div>

I have two secrets -

$ITUNES\_CONNECT\_USER  
$ITUNES\_CONNECT\_PASSWORD

 ![secrets](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/4/4ed0aee9ea572d6b80d6dad8850a6381d5bfdcc0.jpeg)

But, during the build time - I keep getting the error:

> Configs:
> 
> - IpaPath: /Users/vagrant/deploy/Production.ipa
> - PkgPath:
> - ItunesconUser: [chugh.aditya@gmail.com](mailto:chugh.aditya@gmail.com)
> - Password:
> - AppPassword:
> - AppID: 1454535343
> - BundleID: com.chefsplate.mobileapp
> - SubmitForReview: no
> - SkipMetadata: yes
> - SkipScreenshots: yes
> - TeamID:
> - TeamName:
> - Platform: ios
> - Options:
> - GemfilePath: ./Gemfile
> - FastlaneVersion: latest
> - ITMSParameters: -t DAV  
> Issue with input: Password parameter not specified  
> | |  
> ±–±--------------------------------------------------------------±---------+  
> | x | deploy-to-itunesconnect-deliver@2.13.2 (exit code: 1) | 9.68 sec |  
> ±–±--------------------------------------------------------------±---------+  
> | Issue tracker: …om/bitrise-io/steps-deploy-to-itunesconnect-deliver/issues |  
> | Source: [GitHub - bitrise-steplib/steps-deploy-to-itunesconnect-deliver: Deploy to iTunes Connect with Deliver](https://github.com/bitrise-io/steps-deploy-to-itunesconnect-deliver) |  
> ±–±--------------------------------------------------------------±---------+

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [April 10, 2018, 4:52pm UTC](https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737/2 "2018-04-10T16:52:54Z")

</div>

Hi @adityac26,

It’s most likely a configuration issue. Did you specify `$ITUNES_CONNECT_USER` and `$ITUNES_CONNECT_PASSWORD` as the value in the `deploy-to-itunesconnect-deliver` step’s related inputs?

If you did not set these as the values then please do, otherwise the secrets won’t be set as the values in those inputs.

If you did and you can’t figure out why those are not set as the values, then please copy paste the related build’s [bitrise.io](http://bitrise.io) URL, so that we can check the build’s logs & the config it was performed with and we’ll check it ASAP! 🙂

---

<div class="post-metadata">

**Author:** ![adityac26](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@adityac26](https://discuss.bitrise.io/u/adityac26)\
**Post date:** [April 18, 2018, 5:50pm UTC](https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737/3 "2018-04-18T17:50:14Z")

</div>

I ended up resolving the issue by realizing that `ITUNES_CONNECT_USER` or any secret variables would not show up part of a PR. Which is sooooo weird! (@viktorbenei)

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [April 19, 2018, 4:20pm UTC](https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737/4 "2018-04-19T16:20:57Z")

</div>

Glad to hear you managed to resolve the issue!

Re: why are secrets **by default** are not available in PR builds you can find more info in the notice on the Secrets tab:

 ![Screen_Shot_2018-04-19_at_18_13_21](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/2/24c54427c2443a64078c2921fd20616289c77a0e.png)

You can of course enable that specific secrets should be available in PR builds:

 ![Screen_Shot_2018-04-19_at_18_13_21](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d4ec66518419ab2d4fb113f2c39900eeda01a5eb.png)

It’s disabled by default but can be enabled one by one for the inputs which you actually want to make available for PR builds.

If you’d have any questions just let me know! 😉

---

<div class="post-metadata">

**Author:** ![adityac26](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@adityac26](https://discuss.bitrise.io/u/adityac26)\
**Post date:** [April 20, 2018, 4:29pm UTC](https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737/5 "2018-04-20T16:29:17Z")

</div>

Thanks @viktorbenei for the detailed answer.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [April 20, 2018, 4:34pm UTC](https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737/6 "2018-04-20T16:34:33Z")

</div>

Any time 😉

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [May 4, 2018, 4:00pm UTC](https://discuss.bitrise.io/t/app-secrets-not-available-in-build/4737/7 "2018-05-04T16:00:13Z")

</div>

This topic was automatically closed after 13 days. New replies are no longer allowed.
