You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to get things to work on iOS, I had to set swift.swiftSDK to arm64-apple-ios and click Reload the extensions on the prompt that pops up:
As well, once the settings are modified manually it seems like doing a Select Target Platform may no longer work to switch things back to another platform.
Once the settings are set correctly code completion and availability warnings should show up.
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
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: