First Steps with Noctule#

Noctule is a plugin for JetBrains IDEs and Android Studio. It provides Swift language support and integrates with SourceKit-LSP.

Install Noctule and Swift#

If you have not yet installed Noctule or Swift, please follow the instructions in the installation guide.

Choose a Swift Project#

You can either open an existing Swift project or create a new one.

Creating a Swift Package Manager Project#

Noctule provides a wizard to create a new project based on the Swift Package Manager. Open it with File → New Project… → Swift Package. Creating a Swift Package Manager Project describes the available options.

Opening a Swift Package Manager Project#

To work with a Swift Package Manager project, open the project folder in the IDE. Noctule will detect all Package.swift files in this directory and its subdirectories. All directories with Package.swift are passed as workspace folders to the underlying SourceKit-LSP server.

Opening an Xcode Project#

macOS only Since Noctule 2.0

Xcode projects need a license or an active trial.

Open the directory containing your *.xcworkspace or *.xcodeproj and Noctule sets up the IDE project. Please refer to Xcode support for the requirements, such as an installed xcode-build-server.

Build, Run and Test#

Run configurations for swift build, swift run and swift test are ready to use once the project is open. Build & Execute describes how to build, run and test your project from the IDE.