title: How can I test Swift files in Xcode using XCTest without having to build the entire app?
body: <p>What I'm trying to do is test a Swift file frequently after making tiny changes to the file. The file may contain one or more structs and classes. </p>
  
  <p>I don't care about a concept of an "app" because this is purely an academic exercise to practice some new concepts I've learned. I just want to test the file and don't care about the app and anything related to the app.</p>
  
  <p>You may be asking why? Speed. I want it to be really fast to test, right now it takes a few seconds for the most trivial example. I see it does a lot of work to build the targets:</p>
  
  <p><img src="https://i.stack.imgur.com/YYxJu.png" alt="enter image description here"></p>