Hello, I tried to reproduce what is described in this blog post.
I'm using swift 5 and go1.12.4
When I try to compile, I got:
▶ go build .
# github.com/maxence-charriere/murlok/internal/mac
ld: library not found for -lmac
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had a similar error in a different project, after upgrading MacOS (and Swift to Swift 5?). Solved it by deleting .build directory, and re-building the project.
Did you try the example project github.com/onderweg/swift-from-go ?
Hello, I tried to reproduce what is described in this blog post.
I'm using swift 5 and go1.12.4
When I try to compile, I got:
(mac is replacing the go_swift name)
Here is the preamble:
I did swift build before.
Look like it doesn't find the lib.
Here is what swift build is generating:
Do you have an idea of what the problem could be?
I had a similar error in a different project, after upgrading MacOS (and Swift to Swift 5?). Solved it by deleting
.build
directory, and re-building the project.Did you try the example project github.com/onderweg/swift-from-go ?
I've tried your solution but for some reason it doesn't seem to work
all the time it reports error image missing or something like that
then i've stumbled upon this article
ardanlabs.com/blog/2013/08/using-c...
figured out .dylib is missing
and then added it like this:
or packing it into folder like this
It did the trick for me