title: Xcode 10.2 convert multiple targets to Swift 5: Tries to compile some classes that are not part of target
body: <p>I have an iOS Swift project with multiple targets.</p>
  
  <p>Converting the first target to Swift 5 was easy.</p>
  
  <p>Converting the second target to Swift 5, Xcode 10.2 tries to compile files that clearly exist only in the first target and fails (Because it doesn't compile all files of the first target and complains about unresolved identifiers).</p>
  
  <p>What can I do that Xcode compiles only those files, that are part of the target while converting to Swift 5?</p>
  
  <p>How can I convert my project to Swift 5?</p>
  
  <p>Cleaning the Build folder and restarting Xcode 10.2 doesn't help.</p>