Serdar Yegulalp
Senior Writer

Swift for Windows arrives at last, but as an unofficial port

news analysis
May 9, 20163 mins

Developers who want to try out Apple's language on Windows can get started with this unofficial port, but an official version is unlikely until Swift 3.0

An open source effort to port Apple’s Swift language to Windows last week released new versions of both source code and binaries.

Swift was originally developed by Apple as a replacement for the Objective-C language used to develop apps for iOS. But after it was released as an open source project, Swift quickly gained traction outside of iOS developer circles — for example, when IBM created a cloud-hosted development environment for Swift.

Versions of the language already exist for Mac OS X and Linux, but until now no open source port of Apple’s Swift code to Windows was available or announced. An official Windows release might still be forthcoming, but in the meantime this version — which does not appear to be sponsored or developed by anyone from Apple or Microsoft — claims to provide basic Swift functionality on 64-bit Windows 10.

The Windows port is available on GitHub in its original incarnation, and prebuilt binaries are available using both Microsoft Visual C++ and Cygwin (although the MSVC builds are likely to be more reliable). Another project on Microsoft’s CodePlex hub provides a Windows compiler for Swift, with a simple GUI for ease of use.

The most recent build of Swift for Windows requires Visual Studio 2015 and LLVM 3.8.0 to compile Swift source code to binaries. To run the Swift interpreter, you need only the Visual C++ Redistributable for Visual Studio 2015. Compiling and linking with both static and dynamic libraries is supported.

But don’t expect much in the way of Windows-specific integration. For instance, if you want to use any of the platform libraries for windowing or UIs, you’ll have to build all that yourself. It’s possible but requires extensive knowledge of the Win32 API.

Other versions of Swift have been implemented for Windows, but they are not open source. Silver, for instance, is an implementation of Swift intended for creating platform-native applications. It works with the .Net CLR (with Visual Studio integration), the Java and Android virtual machines, and Apple’s Cocoa runtime on their respective platforms. But though it is free to use, Silver is not an open source product.

Apple has made it clear that its long-term plans for Swift 3.0 include platform portability, so Swift code written on one platform can be ported with minimal changes. It’s likely the first “official” Windows versions of Swift will appear when version 3.0 of the language is released. Still, this unofficial port should allow the Swift-curious on Windows to acquaint themselves with the language without changing platforms.

Serdar Yegulalp

Serdar Yegulalp is a senior writer at InfoWorld. A veteran technology journalist, Serdar has been writing about computers, operating systems, databases, programming, and other information technology topics for 30 years. Before joining InfoWorld in 2013, Serdar wrote for Windows Magazine, InformationWeek, Byte, and a slew of other publications. At InfoWorld, Serdar has covered software development, devops, containerization, machine learning, and artificial intelligence, winning several B2B journalism awards including a 2024 Neal Award and a 2025 Azbee Award for best instructional content and best how-to article, respectively. He currently focuses on software development tools and technologies and major programming languages including Python, Rust, Go, Zig, and Wasm. Tune into his weekly Dev with Serdar videos for programming tips and techniques and close looks at programming libraries and tools.

More from this author