SwiftDiscord
SwiftDiscord copied to clipboard
Compile Error 'opus.h' file not found
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!