From 2342fa5fe233329704eed1d1f83ba92a4d3c0c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 22 Apr 2024 22:38:00 +0200 Subject: [PATCH] Enable framework builds for all Apple platforms, including static builds Static frameworks are now a supported by Apple, so we switch the default for all Apple platforms, including Qt for iOS and visionOS. https://developer.apple.com/documentation/xcode/creating-a-static-framework This allows us to bundle resources with our libraries, such as the privacy manifest. Xcode 15 and later will ensure that the linked and embedded framework is not copied into the application bundle, as it's already linked into the app as a static library. Change-Id: Iaf64e7df2d6969d9562fb31ba65f05767e14506e Reviewed-by: Timur Pocheptsov Reviewed-by: Alexey Edelev --- configure.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.cmake b/configure.cmake index 4cf9ad6741a..3beda63cbaf 100644 --- a/configure.cmake +++ b/configure.cmake @@ -626,7 +626,7 @@ qt_feature("force_asserts" PUBLIC ) qt_feature("framework" PUBLIC LABEL "Build Apple Frameworks" - AUTODETECT BUILD_SHARED_LIBS + AUTODETECT ON CONDITION APPLE ) qt_feature_definition("framework" "QT_MAC_FRAMEWORK_BUILD")