# Unable to deploy into testflight

**URL:** <https://discuss.bitrise.io/t/unable-to-deploy-into-testflight/18054>\
**Category:** Builds\
**Tags:** step, ios\
**Created:** [September 20, 2021, 2:18pm UTC](https://discuss.bitrise.io/t/unable-to-deploy-into-testflight/18054 "2021-09-20T14:18:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![order.online](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@order.online](https://discuss.bitrise.io/u/order.online)\
**Post date:** [September 20, 2021, 2:18pm UTC](https://discuss.bitrise.io/t/unable-to-deploy-into-testflight/18054/1 "2021-09-20T14:18:36Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

_Please describe the issue here_

I want to upload app to `testflight` so i use `Deploy to iTunes Connect - Application Loader`

and here are Input variables  
[Steps Variables](https://prnt.sc/1syx5cv)

$EMAIL\_APP =\> my apple dev email  
$PASSWORD =\> apple account password  
$APPLE\_PASSWORD =\> i generated it from here

> **[Apple Account](https://appleid.apple.com/)**
>
> Your account you use for all Apple services

then save it

After all I got this error

Error: Error uploading ‘/Users/vagrant/deploy/orderApp.ipa’.  
2021-09-20 14:02:32.747 altool[18634:46985] \*\*\* Error: code -1011 (Failed to authenticate for session: (  
“Error Domain=ITunesConnectionAuthenticationErrorDomain Code=-22938 "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](http://appleid.apple.com)" UserInfo={NSLocalizedRecoverySuggestion=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](http://appleid.apple.com), NSLocalizedDescription=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](http://appleid.apple.com), NSLocalizedFailureReason=App Store operation failed.}”  
) Authentication failed.)  
Uploading IPA failed: exit status 1

## Environment:

**Where did the issue happen?**  
On Bitrise - Deploy workflow

**Which build Step causes the issue and which version of the step?**

Deploy to iTunes Connect - Application Loader

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : YES/NO

NO

## Build log

Error: Error uploading ‘/Users/vagrant/deploy/orderApp.ipa’.  
2021-09-20 14:02:32.747 altool[18634:46985] \*\*\* Error: code -1011 (Failed to authenticate for session: (  
“Error Domain=ITunesConnectionAuthenticationErrorDomain Code=-22938 "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](http://appleid.apple.com)" UserInfo={NSLocalizedRecoverySuggestion=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](http://appleid.apple.com), NSLocalizedDescription=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](http://appleid.apple.com), NSLocalizedFailureReason=App Store operation failed.}”  
) Authentication failed.)  
Uploading IPA failed: exit status 1

---

<div class="post-metadata">

**Author:** ![order.online](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@order.online](https://discuss.bitrise.io/u/order.online)\
**Post date:** [September 20, 2021, 4:23pm UTC](https://discuss.bitrise.io/t/unable-to-deploy-into-testflight/18054/2 "2021-09-20T16:23:47Z")

</div>

Hey @viktorbenei!  
Can you please help me in this case?

---

<div class="post-metadata">

**Author:** ![cathy.harmon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/cathy.harmon/32/2674_2.png) [@cathy.harmon](https://discuss.bitrise.io/u/cathy.harmon)\
**Post date:** [September 21, 2021, 4:53pm UTC](https://discuss.bitrise.io/t/unable-to-deploy-into-testflight/18054/3 "2021-09-21T16:53:33Z")

</div>

Hello,

Can you provide a build url and enable support access (under the “Settings” tab)?

Also, make sure to check what the “Bitrise Apple Developer Connection” step input is set to. The default is “automatic”

The input determines the method used for Apple Service authentication. By default, any enabled Bitrise Apple Developer connection is used and other authentication-related Step inputs are ignored.

There are two types of Apple Developer connection you can enable on Bitrise: one is based on an API key of the App Store Connect API, the other is the Apple ID authentication. You can choose which type of Bitrise Apple Developer connection to use or you can tell the Step to only use Step inputs for authentication:

- `automatic` : Use any enabled Apple Developer connection, either based on Apple ID authentication or API key authentication. Step inputs are only used as a fallback. API key authentication has priority over Apple ID authentication in both cases.
- `api_key` : Use the Apple Developer connection based on API key authentication. Authentication-related Step inputs are ignored.
- `apple_id` : Use the Apple Developer connection based on Apple ID authentication and the **Application-specific password** Step input. Other authentication-related Step inputs are ignored.
- `off` : Do not use any Apple Developer Connection. Only authentication-related Step inputs are considered.

```auto

```

---

<div class="post-metadata">

**Author:** ![order.online](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@order.online](https://discuss.bitrise.io/u/order.online)\
**Post date:** [September 21, 2021, 8:40pm UTC](https://discuss.bitrise.io/t/unable-to-deploy-into-testflight/18054/4 "2021-09-21T20:40:35Z")

</div>

Hey! Thanks for response  
Yeah make sense  
I just set it to ‘off’ and the build success and deploy to test flight

But the issue is they sent an older version of the app!  
I’m ensuring the GitHub branch I set is updated!

Is there any explanation for that?

---

<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:** [October 21, 2021, 8:41pm UTC](https://discuss.bitrise.io/t/unable-to-deploy-into-testflight/18054/5 "2021-10-21T20:41:06Z")

</div>

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