[swift-users] Getting existing Objc to work with Swift on Linux
Edgar Aroutiounian
edgar at beancode.io
Tue Jan 12 11:29:57 CST 2016
Tom,
Can you provide a self contained example that uses NSStrings and compiles on Linux? I also need to use headers from mach, I suppose I could just include them as well since they are just definitions
> On Jan 12, 2016, at 9:27 AM, Tom Sheffler <tom.sheffler at gmail.com> wrote:
>
> GnuStep on Linux works well, even though the compilation and installation can be a little bit challenging. I spent part of December doing just that. The GUI support isn’t so good (I’d avoid that), but Blocks, Dispatch and ARC and @properties all work well together, and Foundation works fine. (or at least the bits of it I’ve used).
>
> Tom
>
>> On Jan 12, 2016, at 9:10 AM, Dru Satori via swift-users <swift-users at swift.org> wrote:
>>
>> Correct me if I’m wrong. In order for this to work, wouldn’t you need the GnuStep Obj-C libraries compiled under LLVM installed and available on your Linux install to get all of the Foundation bits for Objective-C anyways ?
>>
>>
>>
>>
>>
>> On 1/12/16, 2:54 AM, "swift-users-bounces at swift.org on behalf of Edgar Aroutiounian via swift-users" <swift-users-bounces at swift.org on behalf of swift-users at swift.org> wrote:
>>
>>> Greetings,
>>>
>>> I have some Objective-C that I really want to have work on linux. I saw that core-libs foundation has been implemented for swift so I have some hopes.
>>>
>>>
>>> Ideally I’m looking for a self contained example where I can call Objective C code from swift, think command line tool.
>>>
>>> If this is possible, I’d very much appreciated an example including build steps and directory structure needed.
>>>
>>> Thank you.
>>> _______________________________________________
>>> swift-users mailing list
>>> swift-users at swift.org
>>> https://lists.swift.org/mailman/listinfo/swift-users
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users
>
More information about the swift-users
mailing list