title: Getting 'no such module' error when importing a Swift Package Manager dependency
body: <p>I'm running Xcode 11 Beta 4.
  I'm using CocoaPods, and wanted to use one of my dependencies with Swift Package Manager as a static library instead of as a framework.
  On a fresh project created with Xcode 11, the dependency can be imported successfully, but on my existing CocoaPods workspace, it does not.</p>
  
  <p>I think it's likely related, but I'm also getting this link warning in Xcode:</p>
  
  <pre><code>directory not found for option '-L/Users/username/Library/Developer/Xcode/DerivedData/App-axanznliwntexmdfdskitsxlfypz/Build/Products/Release-iphoneos
  </code></pre>
  
  <p>I went to see if the directory exists after the warning is emitted, and it does.
  I could not find any meaningful difference between the newly-created project and my old one, other than the existence of CocoaPods.</p>
  
  <p>Would appreciate any pointers.</p>