title: iOS command-line build: How to create xcode archive from command line?
body: <p>I am using below command to create an signed ipa file from command line i.e. terminal. </p>
  
  <p><em><strong>xcrun -sdk iphoneos PackageApplication \
      "path/to/build/MyApp.app" \
      -o "output/path/to/MyApp.ipa" \
      --sign "iPhone Distribution: My Company" \
      --embed "path/to/something.mobileprovision"</em></strong></p>
  
  <p>As understood from above, this will create an ipa file. But, I want to create a xcarchive file which will be used to upload to app store using Application Loader. How can I modify this command to achieve that. Any help will be greatly appreciated. Thanks... </p>