Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Autocompletion for SPM dependencies

Compare
Choose a tag to compare
@vknabel vknabel released this 10 Sep 12:59
· 146 commits to master since this release
6c619fd
  • Autocompletion for SPM dependencies #27 (thanks to @yeswolf)
  • Better support for vscode workspaces
  • New setting swift.targets for supporting autocompletion if SDE can't.

Especially when using Xcode projects SDE cannot infer the correct compiler arguments. Now you can fix this by explicitly supplying targets with their sources and compiler arguments. SDE will still detect other targets automatically.

{
  "swift.targets": [
    {
      "name": "YourWatchExtension",
      "path": "YourProject/YourWatchExtension",
      "sources": ["**/*.swift"],
      "compilerArguments": [
        "-sdk",
        "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk",
        "-target",
        "armv7k-apple-watchos4.0"
      ]
    }
  ]
}