qt6-bb10/mkspecs/features/uikit
Tor Arne Vestbø 835c54bc19 iOS: Set LD_ENTRY_POINT for generated Xcode project
We normally override the entrypoint to _qt_main_wrapper via the -e flag
to the linker, but if a Swift file is added to the Xcode project, Xcode
does some magic, building the app as a shared library, and wrapping it
with the Swift code into a custom executable. The -e flag will then be
a noop when linking our shared library.

To work around this we set the custom LD_ENTRY_POINT Xcode build setting,
which triggers Xcode to pass -e when linking the wrapper-executable.

This works in practice, but produces a warning on the console that the
entrypoint is not found, which has been reported as FB16519113.

Fixes: QTBUG-133577
Change-Id: I9d8310b39ac5a4900693df55c2e5bfa346c0300a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 430ba7c0f826ee6f91fbfdc861525cb62b8e725c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 9fbb8e0090a1d8220479e776feae7c9c5bb8493e)
2025-02-21 00:03:39 +00:00
..
bitcode.prf Compare versions in qmake files with versionAtLeast 2017-08-02 21:08:07 +00:00
default_post.prf iOS: Set LD_ENTRY_POINT for generated Xcode project 2025-02-21 00:03:39 +00:00
default_pre.prf CMake: disable the attempt to force SIMD on iOS simulator builds 2022-06-27 20:28:41 -07:00
device_destinations.sh Correct license for tools files 2024-03-05 12:59:21 +01:00
devices.py Correct license for tools files 2024-03-05 12:59:21 +01:00
exclusive_builds_post.prf
gc_binaries.prf iOS: Skip explicit dead code stripping when generating Xcode projects 2019-08-28 13:58:39 +02:00
resolve_config.prf Merge remote-tracking branch 'origin/5.7' into 5.8 2016-11-01 06:02:55 +01:00
sdk.prf Merge remote-tracking branch 'origin/5.8' into dev 2016-11-02 09:24:11 +01:00
testcase.prf
testcase_targets.prf
watchos_coretext.prf Fix CoreText font database build on watchOS 2017-03-30 22:54:31 +00:00
xcodebuild.mk iOS: Use generic simulator device for building apps via xcodebuild 2021-12-23 15:26:35 +00:00
xcodebuild.prf iOS: Use generic simulator device for building apps via xcodebuild 2021-12-23 15:26:35 +00:00