<p dir="ltr"><br>
thank you very much.<br>
when i excu "swift build"in deckofplayingcard.<br>
error:the dependency graph could not be satisfied(somedir/fisheryates).did i miss something?</p>
<p dir="ltr">Best<br>
Bob<br></p>
<blockquote type="cite"><p dir="ltr">发件人: Ankit Agarwal<br>
已发送: 1 月 7 日 星期四 下午 1:51<br>
主题: Re: [swift-dev] how to write package.swift if i want to use dependency file in local?<br>
收件人: qibo_cn@outlook.com<br>
抄送: swift-dev@swift.org, swift-users@swift.org<br></p>
<p dir="ltr">I am assuming by downloaded you meant Downloaded the zip from github. <br></p>
<p dir="ltr">Suppose you have all three downloaded side by side <br></p>
<p dir="ltr">some-dir </p>
<p dir="ltr">├── PlayingCard  </p>
<p dir="ltr">├── FisherYates </p>
<p dir="ltr">└── DeckOfPlayingCards <br></p>
<p dir="ltr">since you downloaded as a zip and not cloned these directories will not be under git version control anymore. </p>
<p dir="ltr">place PlayCard and FisherYates under git and add tag to them as they are dependencies to DeckOfPlayingCards. </p>
<p dir="ltr">DeckOfPlayingCards need not be under git to be built. <br></p>
<p dir="ltr">$ cd PlayingCard </p>
<p dir="ltr">$ git init && git add . && git commit -m "init" && git tag 1.0.0 </p>
<p dir="ltr">  </p>
<p dir="ltr">$ cd ../FisherYates </p>
<p dir="ltr">$ git init && git add . && git commit -m "init" && git tag 1.0.0 <br></p>
<p dir="ltr">$ cd ../DeckOfPlayingCards <br></p>
<p dir="ltr">edit Package.swift and change  <br></p>
<p dir="ltr">` <a href="https://github.com/apple/example-package-fisheryates.git`">https://github.com/apple/example-package-fisheryates.git`</a> to `../FisherYates` </p>
<p dir="ltr">` <a href="https://github.com/apple/example-package-playingcard.git`">https://github.com/apple/example-package-playingcard.git`</a> to `../PlayingCar <br></p>
<p dir="ltr">$ swift build <br></p>
<p dir="ltr">done. <br><br></p>
<p dir="ltr">PS: This should be in swift-users or swift-build-dev <br><br></p>
<p dir="ltr">On Thu, Jan 7, 2016 at 9:58 AM, qibo_cn--- via swift-dev <<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>> wrote: </p>
</blockquote>
<blockquote type="cite"><p dir="ltr">hi all<br>
  i want to build dealer project in swift package-manager.because my ubuntu is not supported to connect github.so i dowload playingcard,fisheryates,deckofplaycards projects in local.build playingcatd and fisheryates successfully. how i shuold change the package.swift in deckofplaycards, to duild this project.</p>
<p dir="ltr">Best<br>
Bob<br></p>
<p dir="ltr"> <br>
_______________________________________________ <br>
swift-dev mailing list <br>
<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a> <br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a> <br>
</p>
</blockquote>
<blockquote type="cite"><p dir="ltr"><br><br></p>
<p dir="ltr">-- </p>
<p dir="ltr">Ankit <br><br></p>
</blockquote>