title: entry point (_main) undefined. for architecture x86_64 - XCode UITesting only
body: <p>I'm getting this error only when trying to run UITests. I'm not using storyboard and building the app runs fine and Unit testing runs fine as well. </p>
  
  <ul>
  <li>In my AppDelegate I have @UIApplicationMain</li>
  <li>I have no storyboard files or references to a storyboard file in my info.plist.</li>
  <li>tried cleaning/rebuilding, restarting xcode</li>
  </ul>
  
  <p>Even recording the UITests works fine and is able to open the app. It's just when I try to run the actual tests that I get the error. </p>
  
  <p>Maybe I'm missing a target somewhere or need to add something to XCUIApplication launch args? Any ideas?</p>