Skip to content

Instantly share code, notes, and snippets.

@Danilqa
Last active May 6, 2021 06:53
Show Gist options
  • Save Danilqa/f9f44120cf0abbc4e2c9be302bddda23 to your computer and use it in GitHub Desktop.
Save Danilqa/f9f44120cf0abbc4e2c9be302bddda23 to your computer and use it in GitHub Desktop.
# 1. Unlock keychain for auto-signing package *
security unlock-keychain -p <your-admin-password> ~/Library/Keychains/login.keychain
# 2. Build JS-bundle to Xcode project
react-native bundle --entry-file='index.js' --bundle-output='./ios/<your-app-name>/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
# 3. Building an archive
xcodebuild -project ./ios/<your-project-name>.xcodeproj -scheme '<your-scheme-name>' -derivedDataPath ./ios/build -archivePath ./ios/archive/<your-app-name>.xcarchive archive | xcpretty
# 4. Export the archive to an *.ipa package
xcodebuild -exportArchive -archivePath ios/archive/<your-app-name>.xcarchive -exportPath ios/ipa -exportOptionsPlist ios/exportOptions.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment