title: Consume Swift Package for multiple targets and platforms in a project?
body: <p>I have a project with multiple targets, such as an iOS app, a watchOS app, and some frameworks. How can I assign the same Swift Package to all my targets? Xcode only let's me select one:</p>
  
  <p><a href="https://i.stack.imgur.com/xs8DO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xs8DO.png" alt="SPM1"></a></p>
  
  <p>If I try to add the Swift Package again so I can try assigning it to another target in my project, I get an error:</p>
  
  <p><a href="https://i.stack.imgur.com/DXKk5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DXKk5.png" alt="SPM2"></a></p>
  
  <p>What is the correct way to do this? Below is what the package manifest looks like in the Swift Package. Is there something to be done on that side or something I have to do different in Xcode?</p>
  
  <pre><code>import PackageDescription
  
  let package = Package(
      name: "Alamofire",
      platforms: [
          .macOS(.v10_12),
          .iOS(.v10),
          .tvOS(.v10),
          .watchOS(.v3)
      ],
      products: [
          .library(
              name: "Alamofire",
              targets: ["Alamofire"])
      ],
      targets: [
          .target(
              name: "Alamofire",
              path: "Source")
      ],
      swiftLanguageVersions: [.v5]
  )
  </code></pre>