swiftlang / vscode-swift

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

I keep getting an error 'could not build Objective-C module ' name of module' sourcekitd #731

Closed brucemontegani closed 3 months ago

brucemontegani commented 3 months ago

I am using Hummingbird 2.0.0-beta.1 I keep getting an error message for the import of the 'HummingbirdTesting' module from the hummingbird package. The error message is "could not build Objective-C module 'HummingbirdTesting'sourcekitd"

To Reproduce Steps to reproduce the behavior:

  1. clone this repo: Todos
  2. swift build
  3. go to Tests/TestTodos.swift
  4. See error when you hover over 'HummingbirdTesting'. It should have an error squiggly under it.

Expected behavior I expected that the HummingbirdTesting module would be built and available.

Environment

adam-fowler commented 3 months ago

Hey @brucemontegani you added a version of this bug 2 years ago #138. As I said at the time this is a sourcekit-lsp bug.

Although if you follow all the links through all the issues you'll find it was SwiftPM bug which looks like it got fixed and merged 3 months ago. So will probably be in Swift 6.

I'm going to close this as a duplicate.