How to archive my app with command line - infobip/mobile-messaging-react-native-plugin GitHub Wiki

Run following command line to build your app with xcode:

xcodebuild build `
    ` -project "ios/MyApp.xcodeproj"`
    ` -scheme "MyApp"`
    ` -archivePath "ios/MyApp.xcarchive"`
    ` -destination "generic/platform=iOS"`
    ` -target="MyApp"`
    ` ENABLE_BITCODE=NO`
    ` PRODUCT_BUNDLE_IDENTIFIER="YOUR_APP_ID"`
    ` PRODUCT_NAME="MyApp"`
    ` DEVELOPMENT_TEAM="YOUR_TEAM_ID"`
    ` CODE_SIGN_IDENTITY="iPhone Distribution"`
    ` IPHONEOS_DEPLOYMENT_TARGET="IOS_VERSION" 

Adjust command line accordingly to your app setup, with appropriate names for the project, scheme, archive path and target. Also make sure to provide proper team ID and bundle as well as deployment target.