> For the complete documentation index, see [llms.txt](https://sagar-r-kothari.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sagar-r-kothari.gitbook.io/blog/_posts/2019-04-11-12-fastlanetestflight.md).

# Sample fastlane script to upload your app to TestFlight

```python
desc "Push a new beta build to TestFlight with Prod Config"
lane :beta do
    ensure_git_status_clean
    increment_build_number(xcodeproj: "yourAppProj.xcodeproj")
    build_ios_app(
        scheme: "yourTargetScheme",
        configuration: "Release",
        export_method: "app-store"
    )
    upload_to_testflight(skip_waiting_for_build_processing: true)
    commit_version_bump(xcodeproj: "yourAppProj.xcodeproj")
    add_git_tag
    push_to_git_remote
end
```
