-
Notifications
You must be signed in to change notification settings - Fork 77
Wrong SDK updated when Select Target Platform is used #1335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
rbenegal
added a commit
to rbenegal/vscode-swift
that referenced
this issue
Feb 14, 2025
SourceKit-LSP now provides code editing support for non-macOS Darwin platforms starting Swift 6.1 using the --swift-sdk flag. Set this flag to the appropriate target triple when using the "Select Target Platform" feature on macOS. Issue: swiftlang#1335
rbenegal
added a commit
to rbenegal/vscode-swift
that referenced
this issue
Feb 25, 2025
Currently this command only supports Darwin SDKs on macOS, and code editing support from Swift 6.1 and above. Only show the command for these cases. Also add a unit test for the command. Issue: swiftlang#1335
rbenegal
added a commit
to rbenegal/vscode-swift
that referenced
this issue
Mar 14, 2025
SourceKit-LSP now provides code editing support for non-macOS Darwin platforms starting Swift 6.1 using the --swift-sdk flag. Set this flag to the appropriate target triple when using the "Select Target Platform" feature on macOS. Issue: swiftlang#1335
rbenegal
added a commit
to rbenegal/vscode-swift
that referenced
this issue
Mar 14, 2025
Currently this command only supports Darwin SDKs on macOS, and code editing support from Swift 6.1 and above. Only show the command for these cases. Also add a unit test for the command. Issue: swiftlang#1335
rbenegal
added a commit
that referenced
this issue
Mar 14, 2025
* Set swift.swiftSDK for target platforms SourceKit-LSP now provides code editing support for non-macOS Darwin platforms starting Swift 6.1 using the --swift-sdk flag. Set this flag to the appropriate target triple when using the "Select Target Platform" feature on macOS. Issue: #1335 * Restrict Switch Platform to macOS and Swift 6.1 Currently this command only supports Darwin SDKs on macOS, and code editing support from Swift 6.1 and above. Only show the command for these cases. Also add a unit test for the command. Issue: #1335
Verified with a1a6b0f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Support for Swift SDKs was added in #1191 however it seems like the wrong SDK may be updated.
To Reproduce
Steps to reproduce the behaviour:
Library
project with>Swift: Create new project
such asMyLibrary
Select Target Platform
to switch toiOS
Code will not work, as it seems like the wrong SDK is being updated:
Also, it would be good to reduce to just one SDK setting to avoid confusion in the future.
.Expected behavior
Code completion should work correctly.
Environment
swift --version
)Target: arm64-apple-macosx15.0
The text was updated successfully, but these errors were encountered: