# Incrementing App Versions for Android and iOS

Source: https://help.testapp.io/faq/incrementing-app-version/

## Android

Incrementing the Version Code

**Manual Update:**

- Open your app's `build.gradle` (Module: app) file.
- Locate the `versionCode` attribute within the `defaultConfig` block.
- Increment the `versionCode` by 1 (or as per your versioning strategy).

```bash
defaultConfig {
    ...
    versionCode 2 // <--- increment this number
    ...
}
```

**Using** [**Fastlane**](https://help.testapp.io/setup-ios-project-for-fastlane/): With Fastlane, you can automate the increment process. After setting up Fastlane for your project:

- Use the `increment_version_code` action to increase your version code.

```bash
fastlane run increment_version_code
```

**Automate and Ship with Our Fastlane Plugin**: Make your release process more efficient. With our Fastlane plugin, you can increment the version code and automatically ship the updated app to our servers with one command.

🔗 [Learn how to set up and use our Fastlane plugin for Android](https://help.testapp.io/fastlane-plugin/).

---

## iOS

Incrementing the Build Number

**Manual Update**:

- Open your app project in Xcode.
- Select your target and go to the "General" tab.
- You'll find the "Build" field under the "Identity" section. Increment this number.
![](https://f000.backblazeb2.com/file/help-testappio/2023/10/Screenshot-2023-10-24-at-9.25.22-AM_o.png)

**Using Fastlane**: Once you have Fastlane set up for your iOS project:

- Use the `increment_build_number` action to increase your build number.

```bash
fastlane run increment_build_number
```

**Automate and Ship with Our Fastlane Plugin**: Make your release process more efficient. With our Fastlane plugin, you can increment the version code and automatically ship the updated app to our servers with one command.

🔗 [Learn how to set up and use our Fastlane plugin for Android](https://help.testapp.io/fastlane-plugin/).

> **Tip:** Testers can also use the [TestApp.io mobile app](https://help.testapp.io/mobile-app-getting-started/) ([iOS](https://apps.apple.com/us/app/testapp-io/id1518972541) / [Android](https://play.google.com/store/apps/details?id=testapp.io)) to install builds and receive push notifications for new releases.

---

Need help? [Contact us](https://testapp.io/contact-us/). we're happy to assist!
