Hello all!
I am attempting to use audit_token_to_pid
from libbsm
in a simple Swift package and I am getting a linker error:
Undefined symbols for architecture arm64:
"_audit_token_to_pid", referenced from:
_[package-name]_main in main.swift.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: fatalError
Is there something I am missing?
EDIT: It seems I was missing this code block below in my executable target. It works now with this code block, but I'm not sure if that is a new requirement or not.
...
linkerSettings: [
.linkedLibrary("bsm")
]
...