From b98308e8a20d634a68580a8358ec42ec6653d8f4 Mon Sep 17 00:00:00 2001 From: Rustam Gamidov Date: Fri, 2 May 2025 16:45:13 +0300 Subject: [PATCH] Link Foundation framework to iOS core explicitly Otherwise it's possible to get into undefined symbols issue in certain cases Relates-To: Minor Signed-off-by: Rustam Gamidov --- olp-cpp-sdk-core/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/olp-cpp-sdk-core/CMakeLists.txt b/olp-cpp-sdk-core/CMakeLists.txt index 08cb14c6d..0fd6697ec 100644 --- a/olp-cpp-sdk-core/CMakeLists.txt +++ b/olp-cpp-sdk-core/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2024 HERE Europe B.V. +# Copyright (C) 2019-2025 HERE Europe B.V. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -524,10 +524,12 @@ if(IOS) endif() find_library(OLP_SDK_CORE_FOUNDATION_FRAMEWORK CoreFoundation) + find_library(OLP_SDK_FOUNDATION_FRAMEWORK Foundation) find_library(OLP_SDK_SECURITY_FRAMEWORK Security) find_library(OLP_SDK_CFNETWORK_FRAMEWORK CFNetwork) target_link_libraries(${PROJECT_NAME} PRIVATE ${OLP_SDK_CORE_FOUNDATION_FRAMEWORK} + ${OLP_SDK_FOUNDATION_FRAMEWORK} ${OLP_SDK_SECURITY_FRAMEWORK} ${OLP_SDK_CFNETWORK_FRAMEWORK}) elseif(ANDROID AND NOT OLP_SDK_ENABLE_ANDROID_CURL AND NOT OLP_SDK_ENABLE_OFFLINE_MODE)