-
Notifications
You must be signed in to change notification settings - Fork 60
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
SourceKitD fails to load standard library with iOS Simulator SDK 18.2 #1374
Comments
as a workaround, does it work if you set the |
Thanks for reporting this @rovo79, could you please also mention how you are setting the platform to |
@rbenegal I've set it in settings.json:
|
Thank you for providing the details. I'm able to reproduce some version of this now, and I think it may have to do with SourceKit trying to use macOS settings with an iOS SDK specified with
This should be fixed with support added for target triples in Swift 6.1 and some version of a fix from #1335 will also be needed to get code editing support for other platforms. I'm not sure if there is a way to do this with Swift 6 or earlier. For now, it seems like the way around it is to use a 6.1 toolchain (currently still under development- so a development snapshot would be required from https://www.swift.org/install/macos/) with setting
should enable code editing support. As well, I'm not sure if simulator specific code editing support is supported by SourceKit-LSP but general non-macOS code editing features should work. |
Describe the bug
The Swift VS Code extension (swiftlang.swift-vscode) fails to load the standard library, causing the SourceKitD provider to fail. This occurs when trying to work with Swift files in VS Code.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Swift extension should properly initialize and provide language services (formatting, intellisense, etc.) for Swift files.
Environment
Target: arm64-apple-macosx15.0
Additional context
Settings.json configuration:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk
Error occurs during extension activation with 'onLanguage:swift' trigger.
RAW output:
The text was updated successfully, but these errors were encountered: