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
x/mobile: Undefined symbols _res_9_nclose with Go 1.20 #58416
Comments
(attn @golang/ios) |
Import how? (Is there something you need to configure in xcode to set the linker flags for the final executable?) |
Import xcframework to xcode project target. No, nothing to configure in xcode |
@xDragonZ, try adding |
Thank you 🫡 finally got it working. Passing |
Great! Want to send a CL to update the documentation? |
Could you please share how you got this working? Running into the same issue and somehow adding libresolv.tbd and libresolv.9.tbd (for me it shows under Apple SDK and not IOS SDK; not sure if that matters) does nothing. |
@gurupras you need to add it to "Frameworks & Libraries" section too |
Hi friends, Not clear if downstream now has to deal with this from now on, or if this will be addressed upstream (making many gophers happy). |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Using MacOS with Go 1.20 error, no issue in 1.19.5
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
After compiling using
gomobile bind -v -ldflags='-s -w' -target=ios -o libtest.xcframework github.com/example/test
in terminal and import thelibtest.xcframework
library to xcode, it will show error in xcode when trying to compile ios appWhat did you expect to see?
What did you see instead?
Related: #58159
The text was updated successfully, but these errors were encountered: