-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
questionFurther information is requestedFurther information is requestedsourcekit-lspSourceKit-LSP issueSourceKit-LSP issue
Description
I have a .swift file with this code:
public struct MyWebView: UIViewRepresentable {
and I get the following error:
Cannot find type 'UIViewRepresentable' in scopeSourceKit

It seems like the correct toolchain is already selected, from the command palette:

I am not able to provide the exact path via the command palette, but I did provide the following folder "/bin" from this output
xcrun --find swift
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
to the user and workspace settings:

I have been building my SDK package successfully via the CLI with:
# list available
xcodebuild -showdestinations -scheme MySDK
# select one of the results (name:iPhone 16 Pro)
TARGET_DESTINATION="9C34C3AD-D86D-464B-B8F6-7ACE24EF3025"
xcodebuild build \
-scheme MySDK \
-destination "id=$TARGET_DESTINATION" \
-configuration Debug
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requestedsourcekit-lspSourceKit-LSP issueSourceKit-LSP issue
Type
Projects
Status
Unscreened