# Distributing Forji

A short description on how to distribute a new version of the Forji app to the Apple App Store.

## 0. Pre-Release

Make sure the code has no linting errors and is formatted correctly:

```bash
just format
just lint
```

Run all tests:

```bash
just test
just test-ui
```

## 1. Bump the version

Check the current version:

```bash
just version
```

Set the new version:

```bash
just set-version 1.2
```

For simplicity we keep `MARKETING_VERSION` and `CURRENT_PROJECT_VERSION` the same.

## 2. Archive

1. Select the build destination **Any iOS Device (arm64)**
2. Select **Product → Archive**
3. Wait for the archive to complete

## 3. Upload

1. In the Organizer window (opens automatically after archiving), select the new archive
2. Click **Distribute App**
3. Follow the prompts to upload to App Store Connect

## 4. Release

1. Open [App Store Connect](https://appstoreconnect.apple.com)
2. Select the build, fill in release notes
3. Submit for review
