Skip to main content

Commands reference

Everything SweetPad can do is exposed as a command. Open the command palette (⌘⇧P), type "sweetpad", and every command below shows up. Most are also reachable from the sidebar — buttons and right-click menus in the Build, Destinations, and Tools views run the same commands.

tip

To put a command on a keyboard shortcut, open Keyboard Shortcuts (⌘K ⌘S) and search for "sweetpad" — every command here can be bound to a key.

Build and run

CommandWhat it does
SweetPad: Build & Run (Launch)Build the active scheme and launch it on the active destination.
SweetPad: Build (without Run)Build only.
SweetPad: Run (without Build)Launch the already-built app without rebuilding.
SweetPad: TestRun the scheme's tests.
SweetPad: CleanClean the build folder and derived data.
SweetPad: Stop build / running appKill the running build or launched app and free the terminal.
SweetPad: Resolve dependenciesResolve Swift Package Manager dependencies.
SweetPad: Remove bundle directoryDelete SweetPad's intermediate app-bundle directory.
SweetPad: Set schemePick the scheme used for builds.
SweetPad: Select build configurationPick the configuration (Debug/Release/…).
SweetPad: Select Xcode workspacePick which workspace or project SweetPad builds, and save it to settings.
SweetPad: Refresh schemesRe-read the scheme list from the project.
SweetPad: Search schemes (Build view)Filter the Build view by name.
SweetPad: Apply scheme filter (Build view)Re-apply the scheme include/exclude filter from settings.
SweetPad: Pause scheme filter (Build view)Temporarily show all schemes, ignoring the filter.
SweetPad: Diagnose build setupWalk the workspace-detection logic and print what was (or wasn't) found.
SweetPad: Switch Git WorktreePoint the build at another git worktree of the same repo.
SweetPad: Open XcodeOpen the current project in Xcode.

Autocomplete and code intelligence

CommandWhat it does
SweetPad: Generate Build Server Config (buildServer.json)Write buildServer.json for SourceKit-LSP and restart the LSP.
SweetPad: Set up Swift code intelligence (BSP)Switch to the built-in build server and write its config.
SweetPad: Diagnose BSP (Doctor)Check the autocomplete chain and print a ✓/✗ report with fix hints.
SweetPad: Show BSP logsOpen the build server's log stream (built-in provider).
SweetPad: Enable LSP DiagnosticsTurn build-log squiggles in the editor back on.
SweetPad: Disable LSP DiagnosticsTurn build-log squiggles off (e.g. to avoid duplicates).

Testing

CommandWhat it does
SweetPad.Testing: Set scheme for testingPick the scheme used when running tests.
SweetPad.Testing: Select testing targetPick the test target when a project has several.
SweetPad.Testing: Select configuration for testingPick the configuration used for test builds.
SweetPad.Testing: Select destination for testingPick a separate destination just for tests.
SweetPad.Testing: Build for testing (without running tests)Compile the test bundle only.
SweetPad.Testing: Test without buildingRun already-built tests without recompiling.

Destinations, simulators, and devices

CommandWhat it does
SweetPad: Select destinationPick where the app runs — simulator, device, or macOS.
SweetPad: Search destinations (Destinations view)Filter the Destinations view by name.
SweetPad: Remove recent destinationDrop an entry from the Recent group.
SweetPad: Start simulatorBoot a simulator.
SweetPad: Stop simulatorShut a simulator down.
SweetPad: Open simulatorOpen the Simulator.app window.
SweetPad: Remove simulator cacheClear the simulator cache (fixes some boot failures).
SweetPad: Refresh simulators listRe-read installed simulators.
SweetPad: Refresh devices listRe-scan for connected devices.
SweetPad: Install pymobiledevice3Install the tool used for device log streaming and the iOS 17+ tunnel.

Formatting

CommandWhat it does
SweetPad: FormatFormat the current file.
SweetPad: Show format logsOpen the formatter's output channel.

Tuist and XcodeGen

CommandWhat it does
SweetPad: Generate an Xcode project using TuistRun Tuist generate at the workspace root.
SweetPad: Install Swift Package using TuistRun Tuist install.
SweetPad: Clean Tuist projectRemove Tuist's generated files.
SweetPad: Edit Tuist project (Open project in Xcode)Open the Tuist manifests in Xcode.
SweetPad: Test Generated project using TuistRun Tuist test across every target.
SweetPad: Generate an Xcode project using XcodeGenRun XcodeGen generate at the workspace root.

Debugging

These back the sweetpad-lldb debug configuration — you rarely run them by hand. See Debugging.

CommandWhat it does
SweetPad: Build & Run (for debugging)Build and launch, signalling the debugger when the app is ready.
SweetPad: Build (for debugging)Build only, as a debug pre-launch step.
SweetPad: Run (for debugging)Launch without building, as a debug pre-launch step.
SweetPad: Get app path for debuggingResolve the last-built app's path (used as a launch.json variable).

Tools

CommandWhat it does
SweetPad: Install toolInstall one of the integrated tools via Homebrew.
SweetPad: Open tool documentationOpen a tool's docs in the browser.
SweetPad: Refresh tools listRe-check which tools are installed.

Agent CLI

See Agent CLI & RPC server.

CommandWhat it does
SweetPad: Show RPC server statusPrint the server name, socket path, and process info.
SweetPad: Copy RPC server nameCopy the server name to the clipboard.
SweetPad: Restart RPC serverRestart the server after settings changes or a stuck state.

Housekeeping and troubleshooting

See Troubleshooting.

CommandWhat it does
SweetPad: Reset Extension CacheForget remembered choices (workspace, scheme, destination, …).
SweetPad: Refresh shell environmentRe-read PATH and friends from your login shell.
SweetPad: Open Terminal PanelReveal SweetPad's terminal panel.
SweetPad: Create Issue on GitHubOpen a pre-filled bug report.
SweetPad: Create Issue on GitHub (No Schemes)Open a bug report pre-filled with scheme-detection diagnostics.
SweetPad: Test Error ReportingFire a test error to verify Sentry reporting is wired up.