Last active
May 6, 2021 06:53
-
-
Save Danilqa/f9f44120cf0abbc4e2c9be302bddda23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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