Skip to content

How to specify external SPM dependencies? #788

@97mik

Description

@97mik

When I try to run a request and the file contains imports of a 3rd party Swift package:

key.request: source.request.indexsource
key.sourcefile: "ViewController.swift"
key.compilerargs:
- "-sdk"
- "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk"
- "-target"
- "arm64-apple-ios16.4"
- "ViewController.swift"

Then I get an error: no such module 'MyPackage'
And I don't get the index of those lines that use the structure from the package.

How can I specify links to used packages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions