# Ship for Testing

> Start testing your game on native devices

Source: https://shipth.is/docs/tutorials/app-store/ship-for-testing

Apple uses TestFlight to allow developers to test their games on iOS devices and
invite others to test them too on their phones.

This is a great way to get feedback and check that everything works before
releasing the app to everyone on the main store.

## Prerequisites

Before you can ship your game for testing, you need to have the following:

- An Apple Developer account
- A configured ShipThis game (see [Prepare your game](https://shipth.is/docs/tutorials/app-store/prepare-your-game))

## Steps

### Ship your game to TestFlight

Shipthis combines all the steps to export, build, and upload your game to TestFlight
into one command:

```bash
shipthis game ship
```

This command will upload your game code to the ShipThis server and then perform the following:

1. Export the game for the iOS platform
1. Configure Xcode with your certificate and keys
1. Build the game for iOS
1. Upload the generated IPA file to TestFlight
1. Automatically increment the "build number" used for the next build

The command may take some time to run, it will show the status of the build job as it runs.

Once successful, you should expect to see output similar to below:

<pre class="terminal__body">
<font color="#4CE64C"><b>david@sal9000</b></font>:<font color="#295FCC"><b>~/game</b></font>$ shipthis game ship
<font color="#FFFFFF"><b>JOB DETAILS</b></font>                     ┌──────────────────────────────────────────────────────────────────┐
  ID          <font color="#FFFFFF"><b>61340b36</b></font>            │                                                                  │
  Name        <font color="#FFFFFF"><b>Shotgun Steve XII</b></font>   │ <font color="#FFFFFF"><b>BUILD DETAILS</b></font>                                                    │
  Status      <font color="#44AA44">COMPLETED</font>           │   ID          <font color="#FFFFFF"><b>ec0cf844</b></font>                                           │
  Version     <font color="#FFFFFF"><b>0.0.1 (2)</b></font>           │   Platform    <font color="#FFFFFF"><b>iOS</b></font>                                                │
  Git Info    <font color="#FFFFFF"><b>ea32f15e (main)</b></font>     │   Type                                                           │
  Platform    <font color="#FFFFFF"><b>iOS</b></font>                 │   CMD         <font color="#FFFFFF"><b>$ shipthis game build download ec0cf844 output.ipa</b></font> │
  Started At  <font color="#FFFFFF"><b>19/11/2024, 16:54</b></font>   │                                                                  │
  Runtime     <font color="#FFFFFF"><b>3 min &amp; 6 sec</b></font>       └──────────────────────────────────────────────────────────────────┘

<font color="#FFFFFF"><b>JOB LOGS</b></font>
16:57:24.576 <font color="#B3D9FF">PUBLISH</font>   <font color="#AA0000">UPLOAD SUCCEEDED</font>
16:57:24.577 <font color="#B3D9FF">PUBLISH</font>   <font color="#AA0000">Delivery UUID: 75ca5604-2af7-42ce-8d99-a5cda1c45131</font>
16:57:24.578 <font color="#B3D9FF">PUBLISH</font>   <font color="#AA0000">Transferred 22938342 bytes in 0.402 seconds (57.0MB/s)</font>
16:57:24.580 <font color="#B3D9FF">PUBLISH</font>   <font color="#AA0000">================</font>
16:57:24.583 <font color="#B3D9FF">PUBLISH</font>   <font color="#AAAAAA">No errors uploading &apos;/var/folders/bm/f...b4/output.ipa&apos;</font>
16:57:24.588 <font color="#B3D9FF">PUBLISH</font>   <font color="#AAAAAA">Exit code 0 and signal null and error undefined</font>
16:57:24.670 <font color="#B3D9FF">PUBLISH</font>
16:57:24.671 <font color="#B3D9FF">PUBLISH</font>
16:57:26.095 <font color="#B3D9FF">PUBLISH</font>   <font color="#AAAAAA">Uploading the IPA to the ShipThis server</font>
16:57:26.585 <font color="#B3D9FF">PUBLISH</font>   <font color="#AAAAAA">✅ shipped</font>
</pre>

If you encounter any problems, please see our [troubleshooting](https://shipth.is/docs/troubleshooting) guide.

### Add Testers

By default the game will have no testers so you won't see it in your TestFlight
immediately even as the developer.

You will need to login to [App Store
Connect](https://appstoreconnect.apple.com/) and add testers to your game.
