diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2026-05-04 14:20:45 +0200 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2026-05-05 03:15:51 +0000 |
| commit | d4e92da75cc95ade144ba527032a4358ecdf814b (patch) | |
| tree | aa95b8532d98c45d6be13b752782ea16514f2ed8 | |
| parent | 5f9e2f34864660a6e4f5614917717bd5c2d01041 (diff) | |
iOS style: Explicitly link against Objective-C runtime
We don't link against any frameworks that automatically bring in
the Objective-C runtime, so we need to explicitly link it.
This was only seen in shared library builds.
Pick-to: 6.10
Change-Id: I06c7b31c7d158ac42ec685df55f2ee81c946ac23
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 5cb49d6ef7b27257a6c8e14f104d8225a6dc746d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| -rw-r--r-- | src/quickcontrols/ios/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quickcontrols/ios/CMakeLists.txt b/src/quickcontrols/ios/CMakeLists.txt index e63f240a99..714d8eabaf 100644 --- a/src/quickcontrols/ios/CMakeLists.txt +++ b/src/quickcontrols/ios/CMakeLists.txt @@ -106,6 +106,8 @@ qt_internal_add_qml_module(qtquickcontrols2iosstyleplugin qt_internal_extend_target(qtquickcontrols2iosstyleplugin CONDITION APPLE AND IOS LIBRARIES ${FWUIKit} + LINK_OPTIONS + "-fobjc-link-runtime" ) file(GLOB resource_glob RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "images/*.png") |
