- Connect development iphone if available
- Open Xcode go to
Product > Scheme > Edit Schemeand selectDebugmode. - Select desired device to run application on
- Press the Play button
- Get a drink and let it load
- Open Android Studio
- Open AVD Manager and select Android device to run application on
-
Bundle script below
react-native bundle --entry-file index.js --platform ios --dev false --bundle-output iosBackup/main.jsbundle --assets-dest iosBackup -
Open Xcode go to
Product > Scheme > Edit Schemeand selectReleasemode. -
Increase version and build numbers
-
Go to
Product > Archiveand let the Archive be built
-
increase version numbers in
android/app/build.gradle -
Create Android build Bundle
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 -
Delete
/NarutoApp/android/app/src/main/res/drawablefolders created and raw folder values -
Run the following script
$ cd android
$ cd android && ./gradlew clean && ./gradlew assembleRelease
The generated APK can be found under android/app/build/outputs/apk/release/app-release.apk, and is ready to be distributed.
#Troubleshooting (cd android && ./gradlew app:installDebug)