/ios-development:ios-archivefrom ios-development
Archive iOS app for App Store or Ad Hoc distribution
Ships in ios-development. Installing the plugin adds it to Claude Code.
Create an archive of the iOS app for App Store submission or Ad Hoc distribution.
Current project:
!ls -la *.xcodeproj *.xcworkspace 2>/dev/null
Build settings:
!xcodebuild -showBuildSettings 2>/dev/null | grep -E "(PRODUCT_BUNDLE_IDENTIFIER|MARKETING_VERSION|CURRENT_PROJECT_VERSION)" | head -10
Create an archive following these steps:
Discover project - Use discover_projs to find Xcode project/workspace
List schemes - Use list_schemes to find the main app scheme
Verify configuration:
show_build_settings for bundle ID, versionClean build (recommended):
xcodebuild clean -scheme "AppScheme" -configuration Release
Create archive:
xcodebuild archive \
-workspace MyApp.xcworkspace \
-scheme "MyApp" \
-configuration Release \
-archivePath ./build/MyApp.xcarchive \
-destination "generic/platform=iOS"
Export IPA (if requested):
For App Store:
xcodebuild -exportArchive \
-archivePath ./build/MyApp.xcarchive \
-exportPath ./build/AppStore \
-exportOptionsPlist ExportOptions.plist
ExportOptions.plist for App Store:
<?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>destination</key>
<string>upload</string>
<key>signingStyle</key>
<string>automatic</string>
<key>uploadSymbols</key>
<true/>
</dict>
</plist>
ExportOptions.plist for Ad Hoc:
<?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>ad-hoc</string>
<key>signingStyle</key>
<string>automatic</string>
<key>thinning</key>
<string><none></string>
</dict>
</plist>
Upload to App Store Connect (if requested):
xcrun altool --upload-app \
-f ./build/AppStore/MyApp.ipa \
-t ios \
--apiKey YOUR_API_KEY \
--apiIssuer YOUR_ISSUER_ID
Generate report:
## Archive Summary
**App**: MyApp
**Version**: 1.0.0 (1)
**Bundle ID**: com.example.myapp
**Archive Path**: ./build/MyApp.xcarchive
**IPA Path**: ./build/AppStore/MyApp.ipa (if exported)
### Next Steps
1. Open Xcode Organizer to view archive
2. Upload to App Store Connect
3. Submit for review
### Checklist Before Submission
- [ ] Privacy manifest included
- [ ] App icons complete
- [ ] Screenshots prepared
- [ ] Release notes written
| Method | Use Case |
|---|---|
app-store-connect | App Store submission |
ad-hoc | Testing on registered devices |
enterprise | Internal distribution (requires enterprise account) |
development | Development testing |
Code Signing:
Version Numbers:
CURRENT_PROJECT_VERSION for each uploadMARKETING_VERSION must be unique per submissionWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub arimunandar/claude-code-ios-plugin --plugin ios-development7 commands in this plugin
/ios-buildiOS Build CommandBuild iOS/macOS project for simulator, device, or macOS/ios-deployiOS Deploy CommandDeploy and run iOS app on simulator or device/ios-lintiOS Lint CommandRun SwiftLint and fix violations/ios-reviewiOS Code Review CommandComprehensive code review using specialized iOS agents/ios-testiOS Test CommandRun unit and UI tests for iOS/macOS projects/migrate-legacyAnalyze legacy iOS code and create a migration plan to VIP+W Clean ArchitectureOther plugins' commands for the same job