Deploy to TestFlight
- •Check for uncommitted changes — warn the user and do not proceed until the working tree is clean
- •Bump the build number — read
CURRENT_PROJECT_VERSIONfromYiana/Yiana.xcodeproj/project.pbxproj, increment by 1, and replace all 6 occurrences in the file - •Commit the bump — stage the pbxproj and commit with message:
Bump build number to N for TestFlight deployment - •Build the iOS archive — run:
If the build fails, show the errors and stop.code
xcodebuild archive -project Yiana/Yiana.xcodeproj -scheme Yiana -destination 'generic/platform=iOS' -archivePath /tmp/Yiana.xcarchive
- •Export and upload — run:
This automatically uploads to App Store Connect (destination=upload in the plist).code
xcodebuild -exportArchive -archivePath /tmp/Yiana.xcarchive.xcarchive -exportOptionsPlist Yiana/ExportOptions.plist -exportPath /tmp/YianaExport
- •Report result — show success or failure. On success, remind the user to check App Store Connect for processing status.
- •Do NOT push to git automatically — ask the user if they want to push the build number bump.