Loading...
Loading...
Compare original and translation side by side
asc builds archive \
--scheme <SCHEME_NAME> \
[--workspace MyApp.xcworkspace] # auto-detected from cwd
[--project MyApp.xcodeproj] # auto-detected from cwd
[--platform ios|macos|tvos|visionos] # default: ios
[--configuration Release] # default: Release
[--export-method app-store-connect|ad-hoc|development|enterprise] # default: app-store-connect
[--signing-style automatic|manual] # default: automatic
[--team-id ABCD1234] # team ID for signing
[--output-dir .build] # default: .buildxcodebuild archivexcodebuild -exportArchiveasc builds archive \
--scheme <SCHEME_NAME> \
[--workspace MyApp.xcworkspace] # 从当前目录自动检测
[--project MyApp.xcodeproj] # 从当前目录自动检测
[--platform ios|macos|tvos|visionos] # 默认值:ios
[--configuration Release] # 默认值:Release
[--export-method app-store-connect|ad-hoc|development|enterprise] # 默认值:app-store-connect
[--signing-style automatic|manual] # 默认值:automatic
[--team-id ABCD1234] # 签名用的团队ID
[--output-dir .build] # 默认值:.buildxcodebuild archivexcodebuild -exportArchiveasc builds archive \
--scheme <SCHEME_NAME> \
--upload \
--app-id <APP_ID> \
--version 1.0.0 \
--build-number 42--uploadasc builds uploadasc builds archive \
--scheme <SCHEME_NAME> \
--upload \
--app-id <APP_ID> \
--version 1.0.0 \
--build-number 42--uploadasc builds upload.asc/project.jsonasc apps listasc apps list.asc/project.jsonAPP_ID=$(cat .asc/project.json 2>/dev/null | jq -r '.appId // empty')APP_ID=$(cat .asc/project.json 2>/dev/null | jq -r '.appId // empty')asc apps list | jq -r '.data[0].id'asc apps list | jq -r '.data[0].id'undefinedundefinedundefinedundefinedundefinedundefined| Method | Use case |
|---|---|
| App Store / TestFlight distribution (default) |
| Direct distribution to registered devices |
| Development testing on registered devices |
| In-house enterprise distribution |
| 方式 | 使用场景 |
|---|---|
| App Store / TestFlight分发(默认) |
| 直接分发给已注册设备 |
| 已注册设备上的开发测试 |
| 企业内部分发 |
| Flag | Default | Description |
|---|---|---|
| | |
| (none) | Apple Developer team ID; useful when multiple teams are configured |
--signing-style automatic-allowProvisioningUpdatesxcodebuild| 参数 | 默认值 | 说明 |
|---|---|---|
| | |
| (无) | Apple开发者团队ID;当配置了多个团队时非常有用 |
--signing-style automaticxcodebuild-allowProvisioningUpdatesupload{
"data": [{
"ipaPath": ".build/export/MyApp.ipa",
"exportPath": ".build/export",
"affordances": {
"upload": "asc builds upload --file .build/export/MyApp.ipa"
}
}]
}--uploadcheckStatuslistBuildsupload{
"data": [{
"ipaPath": ".build/export/MyApp.ipa",
"exportPath": ".build/export",
"affordances": {
"upload": "asc builds upload --file .build/export/MyApp.ipa"
}
}]
}--uploadcheckStatuslistBuilds| Error | Cause | Fix |
|---|---|---|
| "Unknown platform: watchos" | Invalid platform argument | Use: |
| "Scheme not found" | Scheme doesn't exist or workspace not detected | Pass |
| "no signing identity found" | Code signing not configured | Configure signing in Xcode or pass |
| "No profiles for 'X' were found" | Provisioning profile not available | Default |
| "app-store" is deprecated | Old export method name | Use |
| "No .ipa or .pkg found" | Export succeeded but no binary produced | Check xcodebuild output, verify scheme builds an app target |
| "--app-id is required" | | Provide |
| 错误 | 原因 | 解决方法 |
|---|---|---|
| "Unknown platform: watchos" | 无效的平台参数 | 使用: |
| "Scheme not found" | Scheme不存在或未检测到工作区 | 显式传递 |
| "no signing identity found" | 未配置代码签名 | 在Xcode中配置签名,或传递 |
| "No profiles for 'X' were found" | 找不到配置文件 | 默认的 |
| "app-store" is deprecated | 旧的导出方式名称 | 使用 |
| "No .ipa or .pkg found" | 导出成功但未生成二进制文件 | 查看xcodebuild输出,验证Scheme是否构建应用目标 |
| "--app-id is required" | 使用 | 提供 |