๐๏ธ Building Your App
Build and deploy your ExpoBase app to app stores.
๐ Prerequisites
Before building, ensure you've completed the setup:
- โ All environment variables configured
- โ
npm run supabase:setup
completed successfully - โ Apple Developer account (for iOS)
- โ Google Play Console account (for Android)
๐ Development Build
For testing on real devices during development:
# Build development version
npx eas build --platform ios --profile development
npx eas build --platform android --profile development
Install the build on your device and test all features:
- Authentication flows
- Database operations
- Push notifications
- Subscription flows
- Payment processing
๐ฆ Production Build
When ready to submit to app stores:
1. Update Version
Update your app version in app.json
:
export default {
expo: {
version: "1.0.1", // Increment version
ios: {
buildNumber: "2" // Increment build number
},
android: {
versionCode: 2 // Increment version code
}
}
};
2. Add Production Environment Variables
In your Expo Dashboard:
- Go to your project โ Settings โ Environment variables
- Add ALL your production environment variables
- Set environment to Production
3. Build for Stores
# Build for App Store and Play Store
npx eas build --platform all --profile production
4. Submit to Stores
# Submit to App Store
npx eas submit --platform ios
# Submit to Google Play Store
npx eas submit --platform android
๐ง Common Issues
Build Failed?- Check all environment variables are set
- Ensure
npm run supabase:setup
completed without errors - Verify Apple/Google certificates are valid
- Check Sentry dashboard for error reports
- Verify all API keys are correct
- Test authentication flows
๐ฏ Next Steps
After successful store submission:
- Monitor your app via Sentry dashboard
- Track revenue via Revenue Cat dashboard
- Update your app with new features
- Deploy updates via EAS
๐ App Built Successfully!
Your ExpoBase app is now live in the app stores!
Happy launching! ๐