title: Passing arguments to iOS tests with xcodebuild
body: <p>I'd like to pass command line arguments to my iOS tests through the command line (xcodebuild). I'm looking for the equivalent of this setting on XCode:</p>
  
  <p><a href="https://i.stack.imgur.com/Grhaq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Grhaq.png" alt="Arguments"></a></p>
  
  <p>Simply passing the argument to xcodebuild doesn't work, e.g.:</p>
  
  <pre><code>xcodebuild -verbose test -workspace theworkspace.xcworkspace -scheme 'thescheme' -destination 'platform=iOS Simulator,name=iPhone 7' --argument=value
  </code></pre>
  
  <p>This question is similar to <a href="https://stackoverflow.com/questions/40235209/xcodebuild-pass-arguments-to-application-on-ios">xcodebuild pass arguments to application on iOS</a> but the solution to that question is not satisfactory.</p>