Automated summary
Guide la compilation, l'archivage et l'export d'un projet Xcode pour iOS et macOS, puis l'envoi de l'IPA ou du PKG produit vers App Store Connect via la CLI asc.
Strengths
- Fournit les commandes xcodebuild complètes pour les flux iOS (archive + export IPA) et macOS (archive + export PKG)
- Gère les numéros de version et de build avec asc xcode version au lieu d'éditer manuellement le pbxproj
- Inclut un ExportOptions.plist minimal prêt à l'emploi pour la distribution App Store
- Propose un dépannage ciblé sur les erreurs fréquentes : profils de signature manquants, CFBundleVersion trop bas, icônes macOS
Security analysis
CautionThe skill is a legitimate Xcode build/archive/export workflow with no destructive, obfuscated, or exfiltration behavior. It is rated caution because it invokes powerful local build tools, may execute project build scripts, and uploads artifacts to App Store Connect, but all actions are transparent and aligned with the stated purpose.
- •Uses xcodebuild, which can execute project-defined build phase scripts and signing/export tooling.
- •Runs asc upload commands that send built artifacts to App Store Connect.
- •Modifies project version/build numbers via asc xcode version commands.
name: asc-xcode-build description: Build, archive, export, and manage Xcode version/build numbers with asc and xcodebuild before uploading to App Store Connect. Use when you need to create 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 upload to App Store Connect.
Preconditions
- Xcode installed and command line tools configured
- Valid signing identity and provisioning profiles (or automatic signing enabled)
Manage version and build numbers with asc
Before archiving, prefer asc xcode version ... over manual pbxproj edits when you need to inspect or bump app versions.
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
Notes:
- Use
--project-dir "./MyApp"when you are not running from the project root. - Use
--target "App"for deterministic reads in multi-target projects. - These commands support both legacy
agvtoolprojects and modernMARKETING_VERSION/CURRENT_PROJECT_VERSIONsetups.
iOS Build Flow
1. Clean and Archive
xcodebuild clean archive \
-scheme "YourScheme" \
-configuration Release \
-archivePath /tmp/YourApp.xcarchive \
-destination "generic/platform=iOS"
2. Export IPA
xcodebuild -exportArchive \
-archivePath /tmp/YourApp.xcarchive \
-exportPath /tmp/YourAppExport \
-exportOptionsPlist ExportOptions.plist \
-allowProvisioningUpdates
A minimal ExportOptions.plist for App Store distribution:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store-connect</string>
<key>teamID</key>
<string>YOUR_TEAM_ID</string>
</dict>
</plist>
3. Upload with asc
asc builds upload --app "APP_ID" --ipa "/tmp/YourAppExport/YourApp.ipa"
macOS Build Flow
1. Archive
xcodebuild archive \
-scheme "YourMacScheme" \
-configuration Release \
-archivePath /tmp/YourMacApp.xcarchive \
-destination "generic/platform=macOS"
2. Export PKG
xcodebuild -exportArchive \
-archivePath /tmp/YourMacApp.xcarchive \
-exportPath /tmp/YourMacAppExport \
-exportOptionsPlist ExportOptions.plist \
-allowProvisioningUpdates
3. Upload PKG with asc
macOS apps export as .pkg files. Upload with asc:
asc builds upload \
--app "APP_ID" \
--pkg "/tmp/YourMacAppExport/YourApp.pkg" \
--version "1.0.0" \
--build-number "123"
Notes:
--pkgautomatically sets platform toMAC_OS.- For
.pkguploads,--versionand--build-numberare required (they are not auto-extracted like IPA uploads). - Add
--waitif you want to wait for build processing to complete.
Build Number Management
Each upload requires a unique build number higher than previously uploaded builds.
In Xcode project settings:
CURRENT_PROJECT_VERSION- build number (e.g., "316")MARKETING_VERSION- version string (e.g., "2.2.0")
Check existing builds:
asc builds list --app "APP_ID" --platform IOS --limit 5
Troubleshooting
"No profiles for bundle ID" during export
- Add
-allowProvisioningUpdatesflag - Verify your Apple ID is logged into Xcode
Build rejected for missing icon (macOS)
macOS requires ICNS format icons with all sizes:
- 16x16, 32x32, 128x128, 256x256, 512x512 (1x and 2x)
CFBundleVersion too low
The build number must be higher than any previously uploaded build. Increment it with asc xcode version bump --type build, or resolve a remote-safe number with asc builds next-build-number --app "APP_ID" --version "2.2.0" --platform IOS and then apply it with asc xcode version edit --build-number "NEXT_BUILD" before rebuilding.
Notes
- Always clean before archive for release builds
- Use
xcodebuild -showBuildSettingsto verify configuration - For submission issues (encryption, content rights), see
asc-submission-healthskill
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/xcode-build-and-export-mrwake8l' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/xcode-build-and-export-mrwake8l/download' --output '.skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md.part' && mv '.skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md.part' '.skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md' && test -s '.skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/asc-xcode-build' && cp -R '.skill-downloads/xcode-build-and-export-mrwake8l' '.claude/skills/asc-xcode-build'Codex
test -f '.skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md' && test -s '.skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/asc-xcode-build' && cp -R '.skill-downloads/xcode-build-and-export-mrwake8l' '.agents/skills/asc-xcode-build'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/xcode-build-and-export-mrwake8l'openskills read 'xcode-build-and-export-mrwake8l'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/xcode-build-and-export-mrwake8l/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.