diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1e0ad5a..8f170c7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -101,7 +101,7 @@ elseif(APPLE) target_link_libraries(nativeapi PUBLIC "-framework QuartzCore") target_link_libraries(nativeapi PUBLIC "-framework Carbon") target_link_libraries(nativeapi PUBLIC "-framework IOKit") - target_link_libraries(nativeapi PUBLIC "-framework ServiceManagement") + target_link_libraries(nativeapi PUBLIC "-weak_framework ServiceManagement") target_compile_options(nativeapi PRIVATE "-x" "objective-c++") elseif(CMAKE_SYSTEM_NAME STREQUAL "OHOS") # Full Preferences enumeration/flush requires API 23; display queries use