<div dir="ltr"><div>This setup should do what you described:</div><div><br></div><img src="cid:ii_1592a48fcaea0f9c" alt="Inline image 1" width="562" height="194"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 23, 2016 at 2:13 AM, Dave Yost via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></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>I just posted this <a href="http://stackoverflow.com/questions/41290913/how-do-i-use-xcode-for-a-c-library-wrapped-in-swift" target="_blank">on StackOverflow</a>. Insights most welcome.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif">I'm trying to create an Xcode workspace that contains projects that make:</p></blockquote><ul style="margin:0px 0px 1em 30px;padding:0px;border:0px;font-size:15px;color:rgb(36,39,41);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif"><ul><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">A <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">bird</code> dynamic library built from C source</li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">A <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Cbird</code> Swift module that wraps <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">bird</code> in raw Swift</li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">A <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Bird</code> Swift module that imports <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Cbird</code> and wraps it in swifty Swift</li><li style="margin:0px;padding:0px;border:0px;word-wrap:break-word">A <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">birdchirp</code> Swift Command Line Tool that imports <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Bird</code></li></ul></ul><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif">All of these must have an OS X Unit Testing Bundle.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif">I've tried various ways with various versions of Swift 3.x and snapshots to do this starting from <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Project.swift</code> files and using <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">swift package generate-xcodeproj</code>. All of these attempts have resulted in Xcode setups that have various problems:</p></blockquote><ul style="margin:0px 0px 1em 30px;padding:0px;border:0px;font-size:15px;color:rgb(36,39,41);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif"><ul><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">having to do a <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">swift build</code> first and then rooting an Xcode project in a directory deep within the <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">.build</code> directory (created by <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">swift build</code>) or within the (apparently now defunct) <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Packages</code> directory</li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">having to refer to other projects via github addresses</li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">trouble with unit test bundles not finding <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Cbird</code></li><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">Selecting <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Cbird</code> in an <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">import Cbird</code> source line and doing Jump to Definition fails to show the Swift source for <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Cbird</code>.</li><li style="margin:0px;padding:0px;border:0px;word-wrap:break-word">The <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">birdchirp</code> project cheats and refers to <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Bird</code> source files directly instead of depending on the <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Bird</code> framework.</li></ul></ul><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif">Extra credit:</p></blockquote><ul style="margin:0px 0px 1em 30px;padding:0px;border:0px;font-size:15px;color:rgb(36,39,41);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif"><ul><li style="margin:0px;padding:0px;border:0px;word-wrap:break-word"><code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;background-color:rgb(239,240,241);white-space:pre-wrap">Package.swift</code> files that work with relative references to the other projects, while still allowing the projects to be mirrors of GitHub projects</li></ul></ul><div><br></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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ankit<br><br></div>
</div>