title: Xcode - Unit Test - Compiling for iOS 12 but module has minimum deployment target 13
body: <p>I am facing issue while running unit tests, Issue is at line below line of code</p>
  <blockquote>
  <p>@testable import PROJECT_NAME</p>
  </blockquote>
  <p><strong>Error:</strong>
  <code>Compiling for iOS 12.1, but module 'PROJECT_NAME' has a minimum deployment target of iOS 13.0: /Users/NAME/Library/Developer/Xcode/DerivedData/ftahdagcflmajidmksgextinoqip/Build/Products/Debug-iphonesimulator/PROJECT_NAME.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</code></p>
  <p>I have tried following</p>
  <ol>
  <li>Made sure that deployment target is set to <code>iOS 13.0</code></li>
  <li>Cleaning the build folder and rebuilding and rerunning the unit tests.</li>
  <li>Made sure that Simulator I am running is on <code>iOS 13.0+</code> (current simulator is on <code>iOS 13.5</code>)</li>
  </ol>
  <p>but no luck.</p>