Running my app with QT6.4 on iOS

I built QT6.4 for iOS and added it to QT creator:

my app built successfully but there were liker warnings in release version:

ld: warning: direct access in function ‘QMetaTypeId<QQuickItem*>::qt_metatype_id()’ from file ‘/Users/admin/libs/QT6.4/iOs/lib/libQt6Quick.a(qquickitem.cpp.o)’ to global weak symbol ‘QMetaTypeId<QQuickItem*>::qt_metatype_id()::metatype_id’ from file ‘/Users/admin/repos/examples/src/LinesGame/build-LinesGameQt-Qt_6_4_0_iOs_Simulator/LinesGameQt.build/RelWithDebInfo-iphonesimulator/LinesGameQt.build/Objects-normal/x86_64/linesgameqt_qmltyperegistrations.o’ means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

and I was able to start my app directly from QT Creator and even was able to set a breakpoint:

Also I noticed that my app became to look better with QT6.4 comparing to QT 6.2.2:

but the font size is still not quite correct:

From QT docs:

It is ios:QMAKE_IOS_DEPLOYMENT_TARGET in QMake and CMAKE_IOS_DEPLOYMENT_TARGET in CMake.

My XCode version:

clang version: 13.0.0 (clang-1300.0.29.30). It does not support ranges:

1 Response to Running my app with QT6.4 on iOS

  1. dmitriano says:

    see https://stackoverflow.com/questions/24658563/qt-qmake-ios-set-target-device-other-xcode-settings for more details on QMAKE_IOS_DEPLOYMENT_TARGET and other XCode settings

Leave a Reply

Your email address will not be published. Required fields are marked *