These three example Xcode projects show how to incorporate the OpenSSL+Curl libraries into your code.
The iOS Build iOS Test App
The tvOS Build tvOS Test App
The macOS Build macOS Test App
The Test Apps will not build without the required files in the libs and include folders. These are created during the build and will be installed by the script:
./build.shIf you are setting up a new Xcode project, there are a few things you will need to do, including adding the required xcframework (lib) files and include path. Note, these are all set up for you already in the Test xcodeproj files.
You will need to add the xcframework files (libs) and header files (include). You will also need to add libz.tbd to the Xcode project ("General").
You will also need to import the cacert.pem certificate bundle file into your project if you plan to use HTTPS (openssl) for certificate verification.
For macOS builds, you will need to allow "Outgoing Connection (Client)" in the "Signing & Capabilities" of the project target "Sandbox" settings.
You will also need to add libz.tbd, libldap.tbd, CoreFoundation.framework, and SystemConfiguration.framework to the Xcode project ("General") to prevent build errors.