Can Xcode still link with libcurl.{#}.tbd?

I created a new iOS project (storyboard if it matters) and added a bunch of C files to it. Some portion of the C files depend on libcurl. I would like to be able to build for both simulator and device if possible. Google claims that Xcode can provide the dependency as part of the inbuilt libraries however I do not see libcurl.4.tbd (or any version) as an option to choose. Is this feature no longer available or is there something I am missing here?

For context here is a screen shot of my build error situation

There are several lower-level libraries like libcurl that are not present on iOS. I strongly recommend the built-in alternatives instead. There are many to choose from.

Thanks for taking the time to respond. I am very new to the world of C and its inclusion in my iOS apps. Can you tell me the built-in alternatives? Thanks again!

Start here: https://developer.apple.com/documentation/technotes/tn3151-choosing-the-right-networking-api

I have a really old code base where I think I must have supported 10.6 at one time. I have a class called "CURLRequeset" that was a wrapper for the funky Libcurl API. It was easy to convert this class to use NSURLSession if it was available. I should probably rip out the Curl logic. It hasn't been triggered in years.

I generally agree with Etresoft here, but I want to expand on this point:

There are several lower-level libraries like libcurl that are not present on iOS.

… but are on macOS. That’s probably why your ’net searches suggested that libcurl was built in. It is on macOS, but not on iOS.

If you absolutely must have libcurl on iOS, you’ll need to build it yourself and embed that copy in your app. This isn’t super easy, hence the recommendation to use URLSession if you can.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Can Xcode still link with libcurl.{#}.tbd?
 
 
Q