Skip to content

Commit 4229277

Browse files
Link Foundation framework to iOS core explicitly (#1607)
Otherwise it's possible to get into undefined symbols issue in certain cases Relates-To: Minor Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent 390dca8 commit 4229277

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

olp-cpp-sdk-core/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2019-2024 HERE Europe B.V.
1+
# Copyright (C) 2019-2025 HERE Europe B.V.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -524,10 +524,12 @@ if(IOS)
524524
endif()
525525

526526
find_library(OLP_SDK_CORE_FOUNDATION_FRAMEWORK CoreFoundation)
527+
find_library(OLP_SDK_FOUNDATION_FRAMEWORK Foundation)
527528
find_library(OLP_SDK_SECURITY_FRAMEWORK Security)
528529
find_library(OLP_SDK_CFNETWORK_FRAMEWORK CFNetwork)
529530

530531
target_link_libraries(${PROJECT_NAME} PRIVATE ${OLP_SDK_CORE_FOUNDATION_FRAMEWORK}
532+
${OLP_SDK_FOUNDATION_FRAMEWORK}
531533
${OLP_SDK_SECURITY_FRAMEWORK}
532534
${OLP_SDK_CFNETWORK_FRAMEWORK})
533535
elseif(ANDROID AND NOT OLP_SDK_ENABLE_ANDROID_CURL AND NOT OLP_SDK_ENABLE_OFFLINE_MODE)

0 commit comments

Comments
 (0)