Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Swift App TestFlight Shipping

Uploads your Swift app to TestFlight and the App Store with fastlane and Xcode, avoiding common upload rejections.

Claude's review

8/10 Hard-won TestFlight traps: closed version trains, SKIP_INSTALL helper apps, build numbers read from the API, manageAppVersionAndBuildNumber, with commands.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Ships native Swift/SwiftUI apps to TestFlight and the App Store with fastlane and xcodebuild — one App Store Connect API key for both, fastlane lanes scoped to metadata/pricing/subscriptions, headless `xcodebuild archive` + `-exportArchive destination=upload`, build numbers read from App Store Connect instead of guessed, closed pre-release trains, `SKIP_INSTALL` for bundled helper apps, and per-destination archives for multiplatform targets. Use when setting up fastlane for an Xcode project, uploading a build to TestFlight from a script or CI, or debugging "Invalid Pre-Release Train", "expected one {} but found app-store-connect", "Unknown Distribution Error", or a duplicate-build-number rejection.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: shipping-swift-apps
description: Ships native Swift/SwiftUI apps to TestFlight and the App Store with fastlane and xcodebuild — one App Store Connect API key for both, fastlane lanes scoped to metadata/pricing/subscriptions, headless `xcodebuild archive` + `-exportArchive destination=upload`, build numbers read from App Store Connect instead of guessed, closed pre-release trains, `SKIP_INSTALL` for bundled helper apps, and per-destination archives for multiplatform targets. Use when setting up fastlane for an Xcode project, uploading a build to TestFlight from a script or CI, or debugging "Invalid Pre-Release Train", "expected one {} but found app-store-connect", "Unknown Distribution Error", or a duplicate-build-number rejection.
---

# Shipping Swift Apps to TestFlight

Distribution fails differently from building. The compiler is happy, the archive
succeeds, and then App Store Connect rejects the upload for a reason that has
nothing to do with your code — a version train that closed when the last release
was approved, a build number someone already used, a helper target that made the
archive undistributable. Every trap below comes from an upload that was rejected
after a clean build.

For build- and CI-side problems (unsigned builds, the hand-maintained pbxproj,
test-target boundaries), see the `building-swift-apps` skill. This skill starts
at the archive.

## fastlane owns metadata; xcodebuild owns the binary

The reflex is to hand fastlane the whole release with `gym` + `pilot`. You don't
have to, and there's a good reason not to: `xcodebuild` already uploads, so
fastlane's build wrapper is one more layer between you and the signing error.

A useful split:

- **fastlane** — App Store Connect state: listing copy, screenshots, pricing,
  subscription products. This is the tedious, API-shaped work fastlane is
  genuinely better at.
- **xcodebuild** — archive, sign, and upload the binary.

Lanes that only touch metadata are also safer to run: they can't accidentally
ship a build. Say so in the Fastfile header, because "fastlane" reads as "this
submits things" to everyone who didn't write it:

```ruby
# Lanes:
#   fastlane mac metadata   # upload copy + screenshots to the editable version
#   fastlane subscriptions  # dry-run by default; APPLY=1 to write
#
...

From wdm0006's repository, MIT licence.

Related skills

  • Checked

    Android Gradle Plugin upgrade

    Moves Kotlin Multiplatform projects to Android Gradle Plugin 9 and fixes the build failures it causes.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    CocoaPods to SwiftPM

    Moves Kotlin Multiplatform projects from CocoaPods to Swift Package Manager and updates the Xcode project.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    Kotlin Native build speed

    Diagnoses and fixes slow Kotlin/Native iOS builds in Kotlin Multiplatform projects, both locally and on CI.

    by Kotlin 1.1k
    7/101 credit
  • Checked

    SwiftUI Liquid Glass

    Adds and reviews Liquid Glass in SwiftUI apps for iOS 26, avoiding pitfalls with bars, buttons and scrolling.

    by FloWritesCode 476
    7/101 credit
  • Checked

    Native Mobile App Design

    Designs Expo and React Native screens that feel truly native, with proper navigation, motion and dark mode.

    by Appllama 5.7k
    7/101 credit
  • Checked

    EAS cloud simulators

    Runs your app on Expo's cloud iOS and Android simulators, so you can test without a local simulator.

    by expo 4.3k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added