Swift Package Manager support in CLion
Today we are excited to announce that the Swift plugin for the latest CLion 2018.3 EAP build supports Swift Package Manager projects directly! Simply open the SPM project and work with it – no additional configuration required.
Read on to learn about all the available features, or watch the short demo below to see them in action:
Have all project dependencies resolved automatically:
Package.swift with code completion and highlighting available:
Add dependencies easily with a code completion for project targets:
Import changes in one click:
Invoke Swift Package Manager actions right from the context menu or via
Tools | Swift Package Manager:
Code faster using the same code generation and refactoring actions that you have in the latest AppCode EAP:
Have SourceKit inspections and fix-its displayed right in your code editor:
Run, Debug, Test
Run Configurations are created automatically for all products in your Package.swift:
To Run or Debug your application or tests, select the corresponding Run Configuration and press
Develop your SPM projects on Linux having almost the same features as on macOS:
Please note that LLDB in Swift 4.1.x toolchains does not work correctly on Linux, so we recommend using Swift 4.2 toolchains. In addition, we have an issue when it’s not possible to Run or Debug all tests on Linux.
During the 2018.3 EAP cycle, we plan to focus on fixing bugs and implementing such features as first-class unit-testing support, on the same level AppCode already offers for macOS. Other features are linked here as subtasks. After finishing most of these tasks, we plan to add support for Swift Package Manager projects in AppCode.
Here’s hoping CLion will become your IDE of choice for cross-platform Swift development!
Your AppCode Team
The Drive to Develop