asc-xcode-build
rudrankriyam/app-store-connect-cli-skills
Build, archive, and export Xcode projects for App Store Connect upload with version/build number management.
What is asc-xcode-build?
Manages the complete Xcode build-to-export workflow for iOS, tvOS, visionOS, and macOS apps. Use this skill when you need to archive an app, export an IPA or PKG, and prepare it for App Store Connect submission or TestFlight distribution.
- Archive Xcode projects with deterministic artifact output
- Export archives to IPA or PKG format with provisioning profile handling
- Manage and bump version and build numbers automatically
- Resolve remote-safe build numbers to avoid App Store Connect rejection
- Upload and publish builds to App Store Connect, TestFlight, or the App Store
- Handle multi-target and multi-project scenarios with explicit configuration
How to install asc-xcode-build
npx skills add https://github.com/rudrankriyam/app-store-connect-cli-skills --skill asc-xcode-build- Xcode and command line tools installed
- Signing identity and provisioning profiles available, or automatic signing enabled
- App Store Connect authentication configured (for upload or build lookup)
How to use asc-xcode-build
- 1.View or edit version and build numbers with asc xcode version commands
- 2.Archive the project using asc xcode archive with workspace/project and scheme
- 3.Export the archive to IPA or PKG using asc xcode export with ExportOptions.plist
- 4.Optionally resolve next build number with asc builds next-build-number to avoid rejection
- 5.Upload the exported artifact with asc builds upload or publish to TestFlight/App Store
Use cases
- Build and export an iOS app for App Store submission with automatic version bumping
- Create a macOS PKG for App Store distribution with required metadata
- Archive and export a TestFlight build with provisioning profile updates
- Resolve the next valid build number before archiving to prevent rejection
- Automate the complete pipeline from source to App Store Connect upload
- iOS/macOS app developers
- CI/CD pipeline builders for App Store Connect workflows
- Release engineers managing app submissions
- Teams using App Store Connect CLI for automation
asc-xcode-build FAQ
Prefer asc xcode archive and export for deterministic local artifacts and integrated App Store Connect workflows. Use raw xcodebuild only when asc commands don't cover a project-specific option; try --xcodebuild-flag first.
Use asc builds next-build-number to fetch the next valid build number for your version, then set it with asc xcode version edit before archiving.
Add --xcodebuild-flag=-allowProvisioningUpdates to asc xcode export, verify the Apple ID is logged into Xcode, and check provisioning profiles with the asc-signing-setup skill.
Yes, for .pkg uploads these are required because metadata is not auto-extracted like IPA. For IPA uploads they are optional.
Use --wait when the next step depends on the build being processed by App Store Connect, such as when immediately publishing to TestFlight or the App Store.
Full instructions (SKILL.md)
Source of truth, from rudrankriyam/app-store-connect-cli-skills.
name: asc-xcode-build description: Build, archive, export, upload, and manage Xcode version/build numbers with the current asc xcode helpers before App Store Connect upload or submission. Use when creating an IPA or PKG for upload.
Xcode build and export
Use this skill when you need to build an app from source and prepare it for App Store Connect. Prefer asc xcode archive and asc xcode export over raw xcodebuild recipes when they fit the project.
Preconditions
- Xcode and command line tools are installed.
- Signing identity and provisioning profiles are available, or automatic signing is enabled.
- App Store Connect auth is configured when upload or build lookup is needed.
Manage version and build numbers
asc xcode version view
asc xcode version edit --version "1.3.0" --build-number "42"
asc xcode version bump --type build
asc xcode version bump --type patch
Use --project-dir "./MyApp" when not running from the project root. Use --project "./MyApp/App.xcodeproj" when the directory contains multiple projects. Use --target "App" for deterministic reads in multi-target projects.
To avoid low build-number rejects, resolve a remote-safe build number first:
asc builds next-build-number --app "APP_ID" --version "1.2.3" --platform IOS --output json
asc xcode version edit --build-number "NEXT_BUILD"
Preferred iOS/tvOS/visionOS build flow
1. Archive with asc
asc xcode archive \
--workspace "App.xcworkspace" \
--scheme "App" \
--configuration Release \
--clean \
--archive-path ".asc/artifacts/App.xcarchive" \
--xcodebuild-flag=-destination \
--xcodebuild-flag=generic/platform=iOS \
--output json
Use --project "App.xcodeproj" instead of --workspace for project-only apps.
2. Export with asc
asc xcode export \
--archive-path ".asc/artifacts/App.xcarchive" \
--export-options "ExportOptions.plist" \
--ipa-path ".asc/artifacts/App.ipa" \
--xcodebuild-flag=-allowProvisioningUpdates \
--output json
If ExportOptions.plist uses direct App Store Connect upload, add --wait to poll for build discovery and processing:
asc xcode export \
--archive-path ".asc/artifacts/App.xcarchive" \
--export-options "UploadExportOptions.plist" \
--ipa-path ".asc/artifacts/App.ipa" \
--wait \
--output json
3. Upload or publish
Upload an exported IPA:
asc builds upload --app "APP_ID" --ipa ".asc/artifacts/App.ipa" --wait
Distribute to TestFlight:
asc publish testflight --app "APP_ID" --ipa ".asc/artifacts/App.ipa" --group "GROUP_ID" --wait
Publish to the App Store:
asc publish appstore --app "APP_ID" --ipa ".asc/artifacts/App.ipa" --version "1.2.3" --wait
asc publish appstore --app "APP_ID" --ipa ".asc/artifacts/App.ipa" --version "1.2.3" --wait --submit --confirm
macOS App Store flow
Archive with the helper:
asc xcode archive \
--project "MacApp.xcodeproj" \
--scheme "MacApp" \
--configuration Release \
--clean \
--archive-path ".asc/artifacts/MacApp.xcarchive" \
--xcodebuild-flag=-destination \
--xcodebuild-flag=generic/platform=macOS \
--output json
If your macOS export produces a .pkg, use Xcode export with your ExportOptions.plist, then upload the package:
xcodebuild -exportArchive \
-archivePath ".asc/artifacts/MacApp.xcarchive" \
-exportPath ".asc/artifacts/MacAppExport" \
-exportOptionsPlist "ExportOptions.plist" \
-allowProvisioningUpdates
asc builds upload \
--app "APP_ID" \
--pkg ".asc/artifacts/MacAppExport/MacApp.pkg" \
--version "1.0.0" \
--build-number "123" \
--wait
For .pkg uploads, --version and --build-number are required because they are not auto-extracted like IPA metadata.
Raw xcodebuild fallback
Use raw xcodebuild only when asc xcode archive/export --help does not cover a project-specific option. Prefer passing extra arguments through --xcodebuild-flag first.
xcodebuild -showBuildSettings -scheme "App"
Troubleshooting
No profiles for bundle ID during export
- Add
--xcodebuild-flag=-allowProvisioningUpdatestoasc xcode export. - Verify the Apple ID is logged into Xcode.
- Verify profiles with the
asc-signing-setupskill.
CFBundleVersion too low
asc builds next-build-number --app "APP_ID" --version "1.2.3" --platform IOS
asc xcode version edit --build-number "NEXT_BUILD"
Then rebuild and upload again.
Build rejected for missing macOS icon
macOS requires ICNS icons with all required sizes. Fix the asset catalog, rebuild, then export/upload again.
Notes
- Prefer
asc xcode archiveandasc xcode exportfor deterministic local artifacts. - Use
--overwriteonly when replacing existing local artifacts intentionally. - Use
--waiton upload/publish paths when the next step depends on processed builds. - For submission readiness, use
asc-submission-health.
Related skills
More from rudrankriyam/app-store-connect-cli-skills and the wider catalog.

asc-app-create-ui
Create App Store Connect app records via browser automation when API is unavailable.

asc-aso-audit
Run offline ASO audits on App Store metadata and surface keyword gaps via Astro MCP.

asc-build-lifecycle
Track build processing, find latest builds, and clean up old builds with App Store Connect CLI.

asc-cli-usage
Guidance for running asc CLI commands against App Store Connect with proper flags, auth, and discovery techniques.

liteparse
Fast, local document extraction via `lit` CLI—parse once, search cheaply with disciplined patterns.

mem
Store and retrieve memories with full-text search across sessions using local SQLite.