3 ms·
Swift on Linux is not at all tied to Objective-C. In fact Swift on Linux does not even include the Objective-C runtime. So, you basically get an ahead-of-time c
by WoodenChair 8y ago
Swift on Linux is not at all tied to Objective-C. In fact Swift on Linux does not even include the Objective-C runtime. So, you basically get an ahead-of-time compiled language with the same Foundation library as Swift on Mac but without any Objective-C dependency.
The Objective-C interop features of Swift are there for interaction with Apple's frameworks on their platforms.
- mikece 8y agoWhat tooling exists for writing/compiling Swift on Linux?
- wilsonnb2 8y agoLast I checked, not much. Apple only distributes binaries for a few versions of Ubuntu, so unless you're running Ubuntu 14.04, 16.04, or 16.10 you have to compile it yourself. I tried to get it working on Fedora a while back but eventually gave up. The only swift IDE's I know of are the JetBrains one (AppCode, I think?) and xcode. Neither of them runs on Linux. There are a few plugins for existing IDE's but nothing that's great yet. IBM is surprisingly into swift, so I wouldn't be surprised if Eclipse eventually gets first class support for it but it hasn't happened yet.