-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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). |
Adding to Frameworks & Libraries wasn't working for me. I had to go to Build Phases > Link Libraries and add it there |
Update the used Flutter version to 3.7.12 and update all Flutter dependencies. Notes: - We also had to add the "libresolv.tbd" file in the "Frameworks and Libraries" section, see golang/go#58416 - For the Android version of the app we have to use a version of gomobile which includes the following patch: golang/mobile#91
Update the used Flutter version to 3.7.12 and update all Flutter dependencies. Notes: - We also had to add the "libresolv.tbd" file in the "Frameworks and Libraries" section, see golang/go#58416 - For the Android version of the app we have to use a version of gomobile which includes the following patch: golang/mobile#91
Hola puedes dejar lo |
Part of ooni/probe#2503 While there, update GitHub actions versions, update Xcode version, and make sure we explicitly link with `libresolv.tbd` to address golang/go#58416.
include |
Unfortunately, the suggested fix to use |
With go 1.20 its necessary to pass `lresolv` flag when building c-archives and `netgo` for networking on MacOS. This was the primary reason why integration tests were failing. ref -> golang/go#58416 -> golang/go#58159 This commit adds those flags to the derivation which builds status-go-library for integration tests and fixes the missing symbol crash.
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: