<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">This layout should actually just be an error. We currently expect a layout like<div class=""><br class=""></div><div class="">&nbsp; Sources/A/A.swift</div><div class="">&nbsp; Sources/B/B.swift</div><div class="">&nbsp; (two targets)</div><div class=""><br class=""></div><div class="">or&nbsp;</div><div class=""><br class=""></div><div class=""><div class="">&nbsp; Sources/A.swift</div></div><div class=""><div class="">&nbsp; Sources/B.swift</div></div><div class="">&nbsp; (one target)</div><div class=""><br class=""></div><div class="">If you are trying to create a single target with multiple source files in a directory hierarchy, you should move to</div><div class=""><br class=""></div><div class=""><div class="">&nbsp; Sources/TargetName/A.swift</div></div><div class=""><div class="">&nbsp; Sources/TargetName/B/B.swift</div></div><div class=""><br class=""></div><div class="">Can you file a bug to diagnose this (and probably improve docs around it)?</div><div class=""><br class=""></div><div class="">&nbsp;- Daniel</div><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Dec 4, 2015, at 5:48 PM, Paul Young &lt;<a href="mailto:paulyoungonline@gmail.com" class="">paulyoungonline@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">
<div class="">
<span id="mailbox-conversation" class=""><div class="">Given the following directory structure:</div>
<div class=""><br class=""></div>
<div class="">Sources/A.swift</div>
<div class="">Sources/B/B.swift</div>
<div class=""><br class=""></div>
<div class="">When running `swift build`, types defined in A.swift are considered to be undeclared in B.swift</div>
<div class=""><br class=""></div>
<div class="">Is there currently a way to resolve this without moving B.swift into the same directory as A.swift?</div></span><div class="mailbox_signature"><br class=""></div>

<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=AdkfTiApI80cNEyortTzHbERtY5det-2FDBvSxuhs4q2N5NGBzr1WJTqHl8CnbUiL2-2BqH3-2FzmTyA0K4N96Oyx13LM3ply1rarQJ8t1YtHghED7AOV72OLI7m62JUBQUZl41SOvUDOVmXl4RFenT4DozeZQdhxCrZ5aQtukdyeQrYYbscNS5iDJD885M4YMSwYKIzttzmSFcBqw5POorZ-2FnpNdrZZPHbwyO0RUlCGh397E-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
</div>

_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-build-dev<br class=""></div></blockquote></div><br class=""></div></div></body></html>