Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 0x1bitcrack3r/e205ef8043f254ef23d201977f91e707 to your computer and use it in GitHub Desktop.
Save 0x1bitcrack3r/e205ef8043f254ef23d201977f91e707 to your computer and use it in GitHub Desktop.
#Command for building android application(release version) and installing in android device for react-native applications
cd android && ./gradlew clean && ./gradlew assembleRelease && cd app/build/outputs/apk/ && adb install app-release.apk && cd ../../../../../
#Command for building iOS application (appname.archive=>appname.ipa) where appname.ipa can be installed in iOS device
xcodebuild -workspace <ProjectName>/<ProjectName>.xcworkspace -scheme <schemeName> clean archive -configuration release -sdk iphoneos -archivePath <ProjectName>.xcarchive
&& xcodebuild -exportArchive -archivePath <ProjectName>.xcarchive -exportOptionsPlist <ProjectName>/exportOptions.plist -exportPath <ProjectName>.ipa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment