Skip to content

Compile Error 'opus.h' file not found #108

@adiracu

Description

@adiracu

Hey.

I'm trying to integrate SwiftDiscord into my CLI project, but when it's trying to compile DiscordOpus/configure.h, it fails at the #include <opus/opus.h> line, with file not found.

I've installed Opus via homebrew at /opt/homebrew/Cellar/opus/1.3.1/include/opus.

I tried adding the homebrew path to Xcode's Library/Header search path (& linker), but still keep getting the exact same error.

Maybe SPM ignores the custom build settings I've defined on my target and just searches in the default locations? If so, what can I do?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions