<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ah. Good to know. Thanks David.<div class=""><br class=""></div><div class="">—</div><div class=""> Laurent</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 9, 2015, at 3:19 PM, David Owens II <<a href="mailto:david@owensd.io" class="">david@owensd.io</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">No, there currently is no support in the tools to plan for arbitrary ObjC code to run on various platforms.</div><div class=""><br class=""></div><div class="">More info here: <a href="https://swift.org/about/#platform-support" class="">https://swift.org/about/#platform-support</a></div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><h2 id="platform-support" style="box-sizing: border-box; margin: 0px 0px 0.5em; padding: 1.1em 0px 0px; font-size: 2.5em; font-weight: 200; line-height: 1; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;" class="">Platform Support</h2></div><div class=""><p style="box-sizing: border-box; margin: 0px 0px 1.5em; padding: 0px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif; font-size: 18px;" class="">One of the most exciting aspects of developing Swift in the open is knowing that it is now free to be ported across a wide range of platforms, devices, and use cases.</p></div><div class=""><p style="box-sizing: border-box; margin: 0px 0px 1.5em; padding: 0px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif; font-size: 18px;" class="">Our goal is to provide source compatibility for Swift across all platforms, even though the actual implementation mechanisms may differ from one platform to the next. The primary example is that the Apple platforms include the Objective-C runtime, which is required to access Apple platform frameworks such as UIKit and AppKit. On other platforms, such as Linux, no Objective-C runtime is present, because it isn’t necessary.</p></div><div class=""><p style="box-sizing: border-box; margin: 0px 0px 1.5em; padding: 0px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif; font-size: 18px;" class="">The <a href="https://swift.org/core-libraries/" style="box-sizing: border-box; color: rgb(119, 102, 204); text-decoration: none;" class="">Swift core libraries project</a> project aims to extend the cross-platform capabilities of Swift by providing portable implementations of fundamental Apple frameworks (such as Foundation) without dependencies on the Objective-C runtime. Although the core libraries are in an early stage of development, they will eventually provide improved source compatibility for Swift code across all platforms.</p></div></blockquote><div class=""><br class=""></div><div class="">-David</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Dec 9, 2015, at 11:59 AM, Laurent Michel via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Good afternoon,<br class=""><br class="">I’m developing on MacOSX and I have a large code base in Objective-C. One of the attractive strength of Swift is its ability to seamlessly integrate with Objective-C. In my case, the dependencies on the Foundation library is minimal (NSObject, NSArray,…) but I have a lot of Objective-C code of my own.<br class=""><br class="">So…. are the tools supposed to be able to let me hybridize and use my Objective-C library from Swift on Linux ?<br class=""><br class="">Note that<br class=""><br class="">1. I have successfully compiled and tested my library by using the Foundation lib that comes with GNUStep, using clang as a compiler for Objective-C along with the libobjc2 (1.8.1) Objective-C runtime).<br class=""><br class="">2. On MacOSX (10.11) I successfully achieve the above, calling my library from Swift!<br class=""><br class=""><br class="">Any pointer is greatly appreciated (on whether this is doable on Linux and how to go about it).<br class=""><br class="">Thanks a lot,<br class=""><br class="">Best,<br class=""><br class="">—<br class=""> Laurent<br class=""><br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div></body></html>