<div dir="ltr"><div style="font-size:12.800000190734863px">The package manager will pick name from manifest if the sources are inside Sources directory or in the root directory.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Documentation here:  <a href="https://github.com/apple/swift-package-manager/blob/master/Documentation/Reference.md#module-format-reference" target="_blank">https://github.com/apple/<wbr>swift-package-manager/blob/<wbr>master/Documentation/<wbr>Reference.md#module-format-<wbr>reference</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 30, 2017 at 9:48 AM, David Sweeris via swift-users <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;line-height:normal">I have a package that, on the filesystem, is named “tmpArbWidthInteger”, but its Package.swift file looks like this:</div></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2">let</span><span style="font-variant-ligatures:no-common-ligatures"> package = Package(</span></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(209,47,27)"><span style="font-variant-ligatures:no-common-ligatures;color:#000000">    name: </span><span style="font-variant-ligatures:no-common-ligatures">&quot;ArbWidthInteger&quot;</span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">)</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><div style="margin:0px;line-height:normal">In another package, I have the 1st package listed as a dependency, and to use it there, I have to write &quot;import tmpArbWidthInteger&quot;. I figured SwiftPM would pull the library’s name from the Package.swift file rather than the package directory&#39;s name, but &quot;import ArbWidthInteger” throws a “no such module” error.</div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal">Have I found a bug, is the “name” feature not implemented yet, or did I just miss a couple pages in the manual?</div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal">- Dave Sweeris</div></span></div></div><br>______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>