Undefined symbol: _curl_multi_poll when building for macOS using 1.3.2
See original GitHub issueKtor Version and Engine Used (client or server and name) 1.3.2, curl
Getting "Undefined symbol: _curl_multi_poll " when using v1.3.2 of Ktor as part of Kotlin/Native module used in macOS app. I have added libcurl
in XCode project.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Xcode 12b3 Undefined symbol: __swi… - Apple Developer
The example is when building for the simulator, but I get the same error building for an arm device as well. I don't...
Read more >Xcode build fails due to Undefined symbol - Stack Overflow
Go to Xcode, in the project name, right click and click on “New file…” Select Swift File ...
Read more >macOS Monterey Problems - MacPorts Trac
MacPorts must be re-installed in a version configured for macOS 12 ... Undefined symbols; #65225: antlr @2.7.7_3 fails to build on macOS 12: ......
Read more >Build failure with Xcode 14 and macOS 13 (Ventura) Beta ...
I got the following error. (snip) linking shared-object -test-/arith_seq/extract.bundle Undefined symbols for architecture arm64: " ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same issue when linking a debug Framework (release seems ok). From what I understand, the ktor binaries link dynamically with curl ? Isn’t that a bit dangerous in case the curl installed on the client is incompatible with the curl used to compile ktor ? Would it be an option to link curl statically inside ktor (if that makes sense ?) ?
I wasn’t able to get any
build.gradle
config to make a difference but what did work was, after updating version I had installed locally, to add following to XCode “Other Linker Flags”-L/usr/local/opt/curl/lib