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

Commit

Permalink
Documentation for Watch Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Sep 10, 2018
1 parent 1e77fbe commit 260e8ce
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,38 @@ There aren't too much documents about the development of this project. If you ha

### How do I get autocompletion for UIKit?

Just add `"sde.sourcekit.compilerOptions": ["-target", "arm64-apple-ios11.0"]` to your workspace settings in Visual Studio Code and restart it.
You can add new autocomplation targets through your configuration.

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

### Other questions?

Expand Down

0 comments on commit 260e8ce

Please sign in to comment.