<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>We could support this layout. Though it may make it easy to violate the principle of least surprise when moving sources around later in a project's life. So indeed. Should either error or be supported, not half work.</div><div><br>On Dec 4, 2015, at 5:51 PM, Daniel Dunbar &lt;<a href="mailto:daniel_dunbar@apple.com">daniel_dunbar@apple.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=us-ascii">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=""><a href="https://lists.swift.org/mailman/listinfo/swift-build-dev">https://lists.swift.org/mailman/listinfo/swift-build-dev</a><br class=""></div></blockquote></div><br class=""></div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=cbMbdH1LnH6O78Q-2BHw3jtU8ikibH470Fh9meAJKpwSqQfDAM7qpepsFobh81OqxcQmIZkPRppnZg38k0cXwSX4PmyK9fLFScIn8EY48sRYNqFdf8HLa9VNJHAcG-2F6hSQDQuMCJAi-2Fb-2FwYNPBfV1HC3dADPKrt4D7l2z-2BXgXyPIf9nvllH6oMPAyQcepODUobwM55R-2BEFt-2FT21InvL4F3Ajqa2fGEKa08Sq0w5leQtzo-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;">

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