diff --git a/mkspecs/features/uikit/default_post.prf b/mkspecs/features/uikit/default_post.prf index d330d3cdeae..755106e2c66 100644 --- a/mkspecs/features/uikit/default_post.prf +++ b/mkspecs/features/uikit/default_post.prf @@ -48,11 +48,13 @@ macx-xcode { QMAKE_MAC_XCODE_SETTINGS += supported_platforms } - # Override the entry point explicitly, in case a Swift file is - # added to the Xcode project - ld_entry_point.name = LD_ENTRY_POINT - ld_entry_point.value = _qt_main_wrapper - QMAKE_MAC_XCODE_SETTINGS += ld_entry_point + entrypoint { + # Override the entry point explicitly, in case a Swift file is + # added to the Xcode project + ld_entry_point.name = LD_ENTRY_POINT + ld_entry_point.value = _qt_main_wrapper + QMAKE_MAC_XCODE_SETTINGS += ld_entry_point + } # In a simulator specific build the device config will set the SDK # to the simulator SDK, but for Xcode we always want the SDKROOT