I believe he is asking how to get Xcode to use a locally built (and possibly modified) version of swift/compiler. Then using Xcode pointed at this alternate tools chain to build arbitrary projects that may be using things from normal Apple frameworks, etc.<br><br>I have limit web access at the moment but I believe that is documented on the org site.<br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 22, 2016 at 9:39 AM Ankit Agarwal via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You should def look at <a href="https://github.com/apple/swift-package-manager" target="_blank">https://github.com/apple/swift-package-manager</a> <div>It won't give you UIKit but will give you Foundation etc on OSX and the opensource Foundation (under active development) on Linux</div></div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 22, 2016 at 10:52 PM, Marcel Rebouças <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 dir="ltr"><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Hello all,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">I’ve been using Swift for some time, and decided to learn deeper about the language and the source code. I plan to try to modify a version of its compiler in order to generate some code metrics (e.g. Depth of Inheritance (DIT)) to the classes of the projects compiled by it. All in all, this is the first time I am trying doing something like it - first time working in a open source project -, and I’m lost.</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>So, first, I would like to know if there is a way to compile xcode projects (and all classes within it) using the Swift version that I built from sources. </b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">I was able to correctly build Swift on my mac. Cloned the main repositories, and built using swift/utils/build-script.</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77)"><span style="color:rgb(0,0,0)">I am able to run .swift files using xcrun (i.e. </span><span>xcrun …/build/Ninja-DebugAssert/swift-macosx-x86_64/bin/swift -Ounchecked -gnone example.swift).</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77);min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77)"><span>But I couldn’t find a way to compile complete xcode projects, that include UIKit and other imports. </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77);min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77)"><span>Is it possible to do this?</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77);min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77);min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77)"><span>In the future, I then plan to generate extra output files from the compilation process.</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77);min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77)"><span>Thank you very much.</span></p><span><font color="#888888">
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77);min-height:13px"><span></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(55,62,77)"><span>Marcel Rebouças</span></p></font></span></div>
<br>_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div><div class="gmail_extra">-- <br><div>Ankit<br><br></div>
</div>
_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
</blockquote></div>