-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime/cgo Undefined symbols for architecture arm64: _darwin_arm_init_mach_exception_handler #46032
Comments
Your go version says Also is there a reason you are not using |
Thank you so much! |
already fixed |
So how have you fixed it? |
I switch my Go version from |
That's not working for M1 MacBooks tho - any suggestion on how to fix it?
Error:
|
I know it's been almost a year ago but.. :) |
ping same-zeezes |
Getting this here too. Adding If anyone gets any insight into this, please post -- thanks. |
I figured out the issue was I was using |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=4e9e4b" -X "github.com/Dreamacro/clash/constant.BuildTime=2021-05-07-1435"' -buildmode=c-archive -o goClash_arm64.a
What did you expect to see?
Build successed && generate .a for iOS
What did you see instead?
runtime/cgo
Undefined symbols for architecture arm64:
"_darwin_arm_init_mach_exception_handler", referenced from:
_x_cgo_init in _x004.o
"_darwin_arm_init_thread_exception_port", referenced from:
_threadentry in _x004.o
_x_cgo_init in _x004.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
The text was updated successfully, but these errors were encountered: