macOS: Explicitly link the platform plugin to Foundation

In the macOS 26 SDK the NSUserActivityTypeBrowsingWeb is claimed to come
from both Foundation (as in earlier SDKS), as well as CoreServices.

However the latter is not the case on macOS 15, resulting into load
errors with missing symbol.

By explicitly linking to Foundation, and putting it first in the
framework list, we trigger the linker to use the right reference
for the symbol.

Reported upstream as FB17876148.

Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I0c3203f92851ad9fa862aed237823f0e1e28f6ff
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2025-06-10 07:26:19 -07:00
parent 0f6c93c453
commit b9c77b9685

View File

@ -48,6 +48,7 @@ qt_internal_add_plugin(QCocoaIntegrationPlugin
DEFINES
QT_NO_FOREACH
LIBRARIES
${FWFoundation}
${FWAppKit}
${FWCarbon}
${FWCoreServices}