Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!

OpenSSL and HTTPS Support for iOS Devices

Author: Brian Alexakis

For the iOS Device target platform, which does not support dynamic libraries, you need a static version of these library files (libcrypto.a and libssl.a). To obtain these library files, do either of the following:

  1. Download the pre-compiled libraries from Github.
  2. Build these libraries from sources. Download the sources from Github and follow the steps described in Tutorial: Script for Building OpenSSL for iOS (iPhone/iPad) to compile these libraries.

After you have these library files, copy them into a folder where your project searches for libraries, such as the main project folder.

If building with Object Pascal, you need to add the IdSSLOpenSSLHeaders_static unit to any uses clause of your project.

If building with C++ the RAD Studio IDE needs to be configured so your project can link with lib crypto and libssl. Select Project > Options > C++ Linker, and set “Link with SSL and Crypto” to True.


Lastly, in your project code, include the static header with a #if defined to ensure the file is only included when deploying to an iOS device.


For more information on deploying iOS applications, please reference the RAD Studio Doc Wiki: Creating an iOS App.

With Rad’s Studio Native Ios App builder, you can create apps that support the Delphi or C++ environments. Try the free tool here.

Coding Boot Camp

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Related posts

What's New in the GetIt Package Manager - June 2020


RAD Studio 10.4 Now Available, Learn More


Open for Business with 10.4! - May 2020 GM Update


Embarcadero Open Source Project Sponsorship

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.