Swift on Windows in CLion
You may have heard that Swift is now available on Windows. We’ve been following this development closely, and we’ve decided to make it possible to use the Swift plugin in CLion on Windows. It’s now available in CLion 2021.1 EAP (211.6556.10). Let’s take a look!
Install all the required and recommended components from the official Getting Started guide (note that you need the Swift 5.4 toolchain for Windows).
Add the following items to the system
%SystemDrive%\Program Files (x86)\Microsoft Visual Studio\Shared\Python<version>(required for
lldband swift REPL)
%SystemDrive%\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\bin(required for XCTest)
Finally, run CLion with the Swift plugin installed and create a sample project.
The initial indexing can take a long time, since we have no caches bundled for Swift toolchains on Windows. Subsequent indexing should be much faster.
Debugging does not currently work because of several
lldb issues (such as SR-14243). We hope that they will be fixed soon and we will be able to add debugging support in the future.
Build and run
You can build and run your project on Windows in CLion just as you would on Linux or macOS:
Run configurations are created automatically, and test configurations also work.
Code assistance works just like it does on macOS and Linux:
That’s it for now! Stay tuned and keep an eye on this ticket (and related ones) for further updates.
Your AppCode team
The Drive to Develop
AppCode 2023.1 Bug-Fix Update
Hi, AppCode 2023.1 has just been released with fixes for Xcode 14.3 compatibility, Swift refactorings and intentions, the IDE’s UI, and Kotlin Multiplatform Mobile. On December 14, 2022, along with the AppCode 2022.3 release, we sunsetted the product and stopped sales. While we’ve refocused the te…
AppCode 2023.1 Release Candidate
Hi, On December 14, 2022, along with the AppCode 2022.3 release, we sunsetted the product and stopped sales. While we’ve re-focused the team's efforts in other directions, we’ve kept providing technical support to our current users and are releasing bug-fix updates in 2023, targeting mostly the Xco…
AppCode 2022.3 Release and End of Sales and Support
AppCode 2022.3 has just been released. With the release of v2022.3, we are sunsetting the product.
AppCode 2022.3 Release Candidate Is Here
Hi everyone, The release of AppCode 2022.3 is approaching, and the release candidate (build 223.7571.233) is now available for download on our website. You need to have an active subscription or activate a free trial to use this build. The main highlights of this build include: We fixed the r…