Get Device name in XCTest (UITesting)
<p>I am having tough time in finding the device name when running the UITesting for my Target. Below code returns MacBook's name when running on Simulator.</p>

<blockquote>
  <p>UIDevice.current.name</p>
</blockquote>