swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
754 stars 54 forks source link

Failure to identify symbols in Swift workspace/project #1138

Closed uripre closed 3 weeks ago

uripre commented 3 weeks ago

Describe the bug Thank you for developing this well needed plugin.

I encountered a problem where the plugin fails to recognize the symbols in my project, showing errors for all of them. In XCode it has no issue whatsoever. I could not find a way to configure it. Am I missing it? Any advice on how to fix this?

Any help would be highly appreciated.

Environment

0xTim commented 3 weeks ago

When you say project do you mean a Swift Package or an Xcode Project?

uripre commented 3 weeks ago

XCode project. It's an iOS app created by XCode.

Its structure is as follows:

I tried to open both the root folder and the "Project" folder, but same result.

plemarquand commented 3 weeks ago

Hi @uripre, unfortunately the extension is not compatible with .xcodeproj style projects. Only Swift Package Manager style projects are supported at this time.

uripre commented 3 weeks ago

Oh, got it. Thank you.