apache / apache/pulsar-client-go
Error of clang-14: error: linker command failed with exit code 1 (use -v to see invocation) in macOS
- Dominant language
- Go
- Stars
- 745
- Forks
- 389
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 3
Description
I tried to run a demo of `[pulsar-client-go](https://github.com/apache/pulsar-client-go)` on macOS, but I always get the error of `# github.com/99designs/go-keychain
ld: framework not found CoreFoundation
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)`,
after I
`export CGO_CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"` on console,
I got error as below
`# runtime/cgo
the code can run successfully in Linux, Does pulsar-client-go not work on MacOS?
Xcode 14.2
macOS 12.6.6
Thanks so much for any feedback.
Contributor guide
Research direction
Start by reviewing the reported `pulsar-client-go` demo failure and the `go-keychain` linker error on macOS, then compare it with the reported `runtime/cgo` failure after setting `CGO_CFLAGS`. The issue does not name a repository file or test; done means establishing whether the demo works on macOS and documenting a confirmed cause or resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, macos
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100