title: How to use Swift Package Manager with private repos?
body: <p>How to use the Swift Package Manager with dependencies stored in private repositories?</p>
  
  <p>Adding a <code>username</code> and <code>password</code> can functionally work:</p>
  
  <pre class="lang-swift prettyprint-override"><code>let package = Package(
    name: "MyPackage",
    dependencies: [
      .package(url: "https://username:password@gitlab.com/me/MyPackage.git", .branch("develop"))     
    ]
  )
  </code></pre>
  
  <p>However, the <code>username:password</code> approach has issues including (but not limited to) making the <code>Package.swift</code> username specified, and putting plain text credentials in the repository.</p>
  
  <p>Ideally, a solution would:</p>
  
  <ol>
  <li>not store any plain text or token credentials in the repository. </li>
  <li>allow each team member to have their own credentials.</li>
  </ol>