Right now I am trying to see if I can get Mohave running via a VM. If that fails then I will try the linux route. Is there an IDE I can use on linux for swift? I looked a little into it and it seemed many people were coding from the terminal.
Yeah, Swift is most mature on Apple platforms. It had Linux support from day 1 and is obviously open source, a Windows compiler is also in the works if it isn’t done already. But outside of Apple platforms I don’t know of really any development environment that has really integrated with Swift Yet. There’s widespread support of the language, but not super integrated. Example of wheat I mean by widespread support is that code challenge sites like LeetCode accept Swift answers.
JetBrains makes an IDE called AppCode. It’s similar to working with IntelliJ (after all, same company behind it). On the Mac at least it supports Swift development for iOS. It may still have functionality for writing on Linux if it’s available, but you’ll probably have issues trying to run or distribute the code through it. Plus it’s mostly made for mobile development which will have roadblicks if developing on Linux since the swift support is for local running, not pushing to an iOS device, which there is no official software stack for outside the Mac.
But you’ll have Swiftc, the REPL, the swift package manager. All you need to get code running. There’s also a Swift Foundation library, which is different from the Foundation framework in macOS and iOS, but exposes some of the same data types for Swift development on Linux.