[swift-users] Help on how to compile a project.

Ankit Agarwal ankit at ankit.im
Mon Feb 22 11:39:32 CST 2016


You should def look at https://github.com/apple/swift-package-manager
It won't give you UIKit but will give you Foundation etc on OSX and the
opensource Foundation (under active development) on Linux

On Mon, Feb 22, 2016 at 10:52 PM, Marcel Rebouças <swift-users at swift.org>
wrote:

> Hello all,
>
>
> 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.
>
>
> *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. *
>
>
> I was able to correctly build Swift on my mac. Cloned the main
> repositories, and built using swift/utils/build-script.
>
> I am able to run .swift files using xcrun (i.e. xcrun
> …/build/Ninja-DebugAssert/swift-macosx-x86_64/bin/swift  -Ounchecked -gnone
> example.swift).
>
>
> But I couldn’t find a way to compile complete xcode projects, that include
> UIKit and other imports.
>
>
> Is it possible to do this?
>
>
>
> In the future, I then plan to generate extra output files from the
> compilation process.
>
>
> Thank you very much.
>
>
> Marcel Rebouças
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>


-- 
Ankit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160222/9bf143fd/attachment.html>


More information about the swift-users mailing list