asc-xcode-build by rudrankriyam/app-store-connect-cli-skills
npx skills add https://github.com/rudrankriyam/app-store-connect-cli-skills --skill asc-xcode-build当你需要从源代码构建应用并准备上传至 App Store Connect 时,请使用此技能。
asc 管理版本号和构建号在归档之前,当你需要检查或提升应用版本时,优先使用 asc xcode version ... 命令,而不是手动编辑 pbxproj 文件。
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
注意:
--project-dir "./MyApp"。--target "App" 以获得确定性的读取结果。agvtool 项目和现代的 / 配置。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
MARKETING_VERSIONCURRENT_PROJECT_VERSIONxcodebuild clean archive \
-scheme "YourScheme" \
-configuration Release \
-archivePath /tmp/YourApp.xcarchive \
-destination "generic/platform=iOS"
xcodebuild -exportArchive \
-archivePath /tmp/YourApp.xcarchive \
-exportPath /tmp/YourAppExport \
-exportOptionsPlist ExportOptions.plist \
-allowProvisioningUpdates
用于 App Store 分发的极简 ExportOptions.plist 文件:
<?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>
asc builds upload --app "APP_ID" --ipa "/tmp/YourAppExport/YourApp.ipa"
xcodebuild archive \
-scheme "YourMacScheme" \
-configuration Release \
-archivePath /tmp/YourMacApp.xcarchive \
-destination "generic/platform=macOS"
xcodebuild -exportArchive \
-archivePath /tmp/YourMacApp.xcarchive \
-exportPath /tmp/YourMacAppExport \
-exportOptionsPlist ExportOptions.plist \
-allowProvisioningUpdates
macOS 应用导出为 .pkg 文件。使用 asc 上传:
asc builds upload \
--app "APP_ID" \
--pkg "/tmp/YourMacAppExport/YourApp.pkg" \
--version "1.0.0" \
--build-number "123"
注意:
--pkg 会自动将平台设置为 MAC_OS。.pkg 上传,--version 和 --build-number 是必需的(它们不会像 IPA 上传那样自动提取)。--wait 参数。每次上传都需要一个唯一的构建号,且必须高于之前上传的任何构建。
在 Xcode 项目设置中:
CURRENT_PROJECT_VERSION - 构建号(例如,"316")MARKETING_VERSION - 版本字符串(例如,"2.2.0")检查现有构建:
asc builds list --app "APP_ID" --platform IOS --limit 5
-allowProvisioningUpdates 标志macOS 要求包含所有尺寸的 ICNS 格式图标:
构建号必须高于任何先前上传的构建。使用 asc xcode version bump --type build(或 asc xcode version edit --build-number "NEXT")增加它,然后重新构建。
xcodebuild -showBuildSettings 来验证配置asc-submission-health 技能每周安装量
1.2K
代码仓库
GitHub 星标数
588
首次出现
2026年2月2日
安全审计
安装于
codex1.2K
opencode1.2K
gemini-cli1.2K
github-copilot1.1K
kimi-cli1.1K
amp1.1K
Use this skill when you need to build an app from source and prepare it for upload to App Store Connect.
ascBefore 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:
--project-dir "./MyApp" when you are not running from the project root.--target "App" for deterministic reads in multi-target projects.agvtool projects and modern MARKETING_VERSION / CURRENT_PROJECT_VERSION setups.xcodebuild clean archive \
-scheme "YourScheme" \
-configuration Release \
-archivePath /tmp/YourApp.xcarchive \
-destination "generic/platform=iOS"
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>
asc builds upload --app "APP_ID" --ipa "/tmp/YourAppExport/YourApp.ipa"
xcodebuild archive \
-scheme "YourMacScheme" \
-configuration Release \
-archivePath /tmp/YourMacApp.xcarchive \
-destination "generic/platform=macOS"
xcodebuild -exportArchive \
-archivePath /tmp/YourMacApp.xcarchive \
-exportPath /tmp/YourMacAppExport \
-exportOptionsPlist ExportOptions.plist \
-allowProvisioningUpdates
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:
--pkg automatically sets platform to MAC_OS..pkg uploads, --version and --build-number are required (they are not auto-extracted like IPA uploads).--wait if you want to wait for build processing to complete.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
-allowProvisioningUpdates flagmacOS requires ICNS format icons with all sizes:
The build number must be higher than any previously uploaded build. Increment it with asc xcode version bump --type build (or asc xcode version edit --build-number "NEXT") and rebuild.
xcodebuild -showBuildSettings to verify configurationasc-submission-health skillWeekly Installs
1.2K
Repository
GitHub Stars
588
First Seen
Feb 2, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykPass
Installed on
codex1.2K
opencode1.2K
gemini-cli1.2K
github-copilot1.1K
kimi-cli1.1K
amp1.1K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装