<div dir="ltr"><div>Hi,</div><div>I was following the github documentation to create multiple modules ( <a href="https://github.com/apple/swift-package-manager/blob/master/Documentation/SourceLayouts.md">https://github.com/apple/swift-package-manager/blob/master/Documentation/SourceLayouts.md</a> ) in a package.</div><div><br></div>My package directory looks like this:<div>SwiftTest/Package.swift</div><div>SwiftTest/Sources/Bar/bar.swift</div><div>SwiftTest/Sources/Foo/foo.swift</div><div><br></div><div>bar.swift :</div><div> public func bar() {</div><div> print("bar")</div><div> }</div><div><br></div><div>foo.swift :</div><div> import Bar</div><div> public func foo() {</div><div> bar()</div><div> }</div><div><div><br></div><div>Compiling this produces an error saying : foo.swift: error: no such module 'Bar'</div><div>When I remove dependency of 'Bar' module from foo.swift (by removing import statement and call to 'bar'), it compiles fine.</div><div>Am I missing something here? Can't I use imports directly?</div><div><br></div><div>-- <br><div><div>Regards,</div>`Tarun`<div><br></div></div>
</div></div></div>