TestFlight Deployment Guide¶
Prerequisites¶
- [ ] Apple Developer Account ($99/year)
- [ ] Xcode installed
- [ ] App Store Connect access
Step 1: Configure App in Xcode¶
In Xcode: 1. Select the project in navigator 2. Under "Signing & Capabilities": - Team: Select your Apple Developer Team - Bundle Identifier: com.yourcompany.nutri-e (must be unique) - Automatically manage signing: ✓
Step 2: Set Version & Build Number¶
- In Xcode, select your target
- General tab:
- Version: 1.0.0
- Build: 1
Step 3: Create Archive¶
- Select target device: "Any iOS Device (arm64)"
- Menu: Product → Archive
- Wait for build to complete
Step 4: Upload to App Store Connect¶
- In Organizer window (opens after archive):
- Select your archive
- Click "Distribute App"
- Choose "App Store Connect"
- Choose "Upload"
- Follow prompts (use default options)
Step 5: Configure in App Store Connect¶
- Go to https://appstoreconnect.apple.com
- My Apps → Nutri-E
- TestFlight tab
- Wait for processing (5-10 minutes)
- Add internal/external testers
Step 6: Test¶
- Testers receive email invitation
- Install TestFlight app
- Install and test Nutri-E
Common Issues¶
- Signing errors: Ensure valid certificates in Keychain
- Bundle ID conflict: Use unique identifier
- Missing icons: Add app icons in Assets.xcassets
Build from Command Line (Alternative)¶
# Build archive
xcodebuild -project ios/Nutri-E/Nutri-E.xcodeproj \
-scheme Nutri-E \
-sdk iphoneos \
-configuration Release \
archive -archivePath ~/Desktop/Nutri-E.xcarchive
# Export IPA
xcodebuild -exportArchive \
-archivePath ~/Desktop/Nutri-E.xcarchive \
-exportOptionsPlist ios/ExportOptions.plist \
-exportPath ~/Desktop/
# Upload with xcrun
xcrun altool --upload-app \
-f ~/Desktop/Nutri-E.ipa \
-u your-apple-id@example.com \
-p app-specific-password