Skip to content

Building SuplaClient for iOS

mipolansk edited this page Aug 30, 2023 · 14 revisions

Steps to build the LibSuplaClient.xcframework for iOS development:

  1. Checkout the supla core repository

  2. Go to supla-core/supla-client/Tools/openssl and build openssl (v 3.8.0)

    ./build_openssl.sh -t8 -s 16.2

  3. Go up to supla-core/supla-client/Tools and build supla client

    ./build_ios.sh -t 8 -o /tmp/openssl-3.0.8-iPhoneOS-arm64/include -s 16.2 The path /tmp/openssl-3.0.8-iPhoneOS-arm64/include is created by the build_openssl.sh script by default

  4. Copy created XCFramework to project. Path to XCFramework is written by build script:

    [INFO] XCFramework created: /.../supla-core/supla-client/Tools/../Release/LibSuplaClient.xcframework

Clone this wiki locally