[swift-users] Help on how to compile a project.
Shawn Erickson
shawnce at gmail.com
Mon Feb 22 11:46:57 CST 2016
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.
I have limit web access at the moment but I believe that is documented on
the org site.
On Mon, Feb 22, 2016 at 9:39 AM Ankit Agarwal via swift-users <
swift-users at swift.org> wrote:
> 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
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160222/8d80b844/attachment.html>
More information about the swift-users
mailing list