Skip to content

omyto/build-libcurl-ios

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

libcurl for iOS

Build libcurl for iOS development. This script will generate a XCFramework with embedded static libraries for arm64 and x86_64 (simulator) architectures.

The SSL library used is SecureTransport.

Script only, please download libcurl from here: https://curl.se/download.html

Tested with:

  • Xcode 13.3
  • macOS 12.2
  • curl 7.82.0

Usage

curl -O https://curl.se/download/curl-7.82.0.tar.gz
tar xf curl-7.82.0.tar.gz
bash build_libcurl_dist.sh curl-7.82.0

The resulting curl.xcframework will be created in a dist directory in the current directory.

Using the created XCFramework in your project

Add the framework in the "General" tab of your target, in the "Frameworks, Libraries, and Embedded Content" section.

See WWDC 2019 Session 416 : Binary Frameworks in Swift for more info.

About

Build libcurl for iOS development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%