Skip to main content
Build simulator/emulator apps from React Native CLI projects.

iOS Simulator Build

Generate Bundle

cd /path/to/your/react-native-project

npx react-native bundle \
  --entry-file='index.js' \
  --bundle-output='./ios/main.jsbundle' \
  --dev=false \
  --platform='ios'

Build in Xcode

# Open workspace
open ios/YourApp.xcworkspace
In Xcode:
  1. Select any iOS Simulator as destination
  2. Product → Build (⌘+B)
  3. Find build: ios/build/Build/Products/Debug-iphonesimulator/YourApp.app

Test

  1. Open iOS Simulator
  2. Drag .app file onto simulator
  3. Launch and verify

Android Emulator Build

Create Assets Directory

mkdir -p android/app/src/main/assets

Generate Bundle

npx react-native bundle \
  --platform android \
  --dev false \
  --entry-file index.js \
  --bundle-output android/app/src/main/assets/index.android.bundle \
  --assets-dest android/app/src/main/res

Build APK

cd android
./gradlew assembleDebug
APK location: android/app/build/outputs/apk/debug/app-debug.apk

Test

# Start emulator, then:
adb install app/build/outputs/apk/debug/app-debug.apk
Launch from emulator and verify.

Troubleshooting

Bundle Generation Fails

# Reset cache
npx react-native start --reset-cache

# Clean install
rm -rf node_modules && npm install

iOS Build Issues

Signing errors for simulator builds:
  • Set Code Signing Identity to “Don’t Code Sign”
  • Or enable Automatically manage signing
Missing dependencies:
cd ios
xcodebuild clean
cd ..
npx react-native run-ios

Android Build Issues

Gradle fails:
cd android
./gradlew clean
rm -rf ~/.gradle/caches
Assets missing:
# Verify bundle exists
ls -la android/app/src/main/assets/
# Should show index.android.bundle

Next Steps

Upload to Revyl:
  • iOS: Upload .app from ios/build/Build/Products/Debug-iphonesimulator/
  • Android: Upload .apk from android/app/build/outputs/apk/debug/
See Builds page for upload instructions.
Need help? Contact [email protected]