title: How to use fastlane on physical ios devices?
body: <p>Right now i am running:</p>
  
  <pre><code>fastlane scan --scheme MyUITests \
  --destination 'platform=iOS,id=myId' \
  --destination 'platform=iOS,id=myId2' \ 
  --output_types "junit" --output_files "report.xml" --clean
  </code></pre>
  
  <p>This runs the tests on the second device (myId2) but not the first one. If I switch the order, then (myId) would run and (myId2) would not. So it takes the last <code>--destination</code>. I was wondering how I could run tests on multiple connected devices.</p>
  
  <p>When I tried using a fastfile:</p>
  
  <pre><code>lane :uitests do
    scan(devices: ["asd's iPhone", "asd's iPad"],
         scheme: "MyUITests",
          output_types: "junit",
          output_files: "report.xml",
          clean: true)
  end
  </code></pre>
  
  <p>It won't recognize the name. I tried the uuids but they didn't work either. I get the following error:</p>
  
  <pre><code>[13:08:40]: Ignoring 'blah's iPhone', couldn’t find matching simulator
  [13:08:40]: Ignoring 'asg's iPad', couldn’t find matching simulator
  [13:08:40]: Couldn't find any matching simulators for '["blah's iPhone", "asg's iPad"]' - falling back to default simulator
  [13:08:40]: Found simulator "iPhone 5s (11.4)"
  </code></pre>
  
  <p>So how do I test on multiple connected devices at once? </p>
  
  <p>I don't want to use a simulator because I need to test on cellular and do other things that can only be done with a physical device. I tried xcodebuild but it did not generate junit xml reports, I need those for jenkins and fastlane does it for one device when I am doing it right now.</p>