Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81255

[Reg 5.14.0 -> 5.14.1] Cannot build certain qtquick applications on iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.14.1, 5.15.0 Alpha
    • 5.14.1
    • Quick: Controls 2
    • macOS version 10.14.6 (18G103)
      Xcode 11.3
      Build version 11C29
    • iOS/tvOS/watchOS
    • 457ab46936f4c90099a0f1b16abaff5312037fdb (qt/qtbase/5.14.1)

    Description

      Building certain qtquick based application on iOS fails. This is regression against Qt 5.14.0.

      Building e.g. qtquickcontrols/contactlist, the build fails with a linker error:

      10:05:41: Running steps for project contactlist... 10:05:41: Starting: "/Users/qt/RTA/qt5/5.14.1/ios/bin/qmake" /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/contactlist/contactlist.pro -spec macx-ios-clang CONFIG+=iphoneos CONFIG+=device CONFIG+=qml_debug 10:05:42: The process "/Users/qt/RTA/qt5/5.14.1/ios/bin/qmake" exited normally. 10:05:42: Starting: "/usr/bin/make" -f /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/Makefile qmake_all make: Nothing to be done for `qmake_all'. 10:05:42: The process "/usr/bin/make" exited normally. 10:05:42: Starting: "/usr/bin/make" -j8 xcodebuild build -project contactlist.xcodeproj -scheme contactlist -configuration Debug -destination generic/platform=iOS -destination-timeout 1 ENABLE_ONLY_ACTIVE_RESOURCES=NO Build settings from command line: ENABLE_ONLY_ACTIVE_RESOURCES = NOPrepare build note: Using legacy build system === BUILD AGGREGATE TARGET Qt Preprocess OF PROJECT contactlist WITH CONFIGURATION Debug ===Check dependenciesPhaseScriptExecution Qt\ Qmake contactlist.build/Debug-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh cd /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug /bin/sh -c \"/Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/contactlist.build/Debug-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh\" make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[1]: `contactlist.xcodeproj/project.pbxproj' is up to date.PhaseScriptExecution Qt\ Preprocessors contactlist.build/Debug-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh cd /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug /bin/sh -c \"/Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/contactlist.build/Debug-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh\" make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[1]: Nothing to be done for `preprocess'.=== BUILD TARGET contactlist OF PROJECT contactlist WITH CONFIGURATION Debug ===Check dependenciesLd Debug-iphoneos/contactlist.app/contactlist normal arm64 cd /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/qt/RTA/qt5/5.14.1/ios/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios12.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -L/Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/Debug-iphoneos -L/Users/qt/RTA/qt5/5.14.1/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks -L/Users/qt/RTA/qt5/5.14.1/ios/lib -L/Users/qt/RTA/qt5/5.14.1/ios/plugins/imageformats -L/Users/qt/RTA/qt5/5.14.1/ios/plugins/qmltooling -L/Users/qt/RTA/qt5/5.14.1/ios/plugins/bearer -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick/Layouts -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick.2 -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick/Templates.2 -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick/Controls.2 -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick/Controls.2/Fusion -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick/Controls.2/Universal -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick/Controls.2/Material -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtGraphicalEffects/private -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick/Window.2 -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtGraphicalEffects -L/Users/qt/RTA/qt5/5.14.1/ios/qml/QtQuick/Controls.2/Imagine -F/Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/Debug-iphoneos -filelist /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/contactlist.build/Debug-iphoneos/contactlist.build/Objects-normal/arm64/contactlist.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/contactlist.build/Debug-iphoneos/contactlist.build/Objects-normal/arm64/contactlist_lto.o -Xlinker -no_deduplicate -fembed-bitcode-marker -stdlib=libc++ -Wl,-e,_qt_main_wrapper -Wl,-rpath,@executable_path/Frameworks -L/Users/qt/RTA/qt5/5.14.1/ios/plugins/platforms -framework AssetsLibrary -framework MobileCoreServices -lm -framework UIKit -lz -framework OpenGLES -lqios_debug -framework QuartzCore -framework AudioToolbox -lQt5FontDatabaseSupport_debug -lqtfreetype_debug -lQt5GraphicsSupport_debug -lQt5ClipboardSupport_debug -lqgif_debug -lqicns_debug -lqico_debug -lqjpeg_debug -lqmacheif_debug -lqmacjp2_debug -framework ImageIO -lqtga_debug -lqtiff_debug -lqwbmp_debug -lqwebp_debug -lqmldbg_debugger_debug -lqmldbg_inspector_debug -lqmldbg_local_debug -lqmldbg_messages_debug -lqmldbg_native_debug -lqmldbg_nativedebugger_debug -lqmldbg_preview_debug -lqmldbg_profiler_debug -lqmldbg_quickprofiler_debug -lqmldbg_server_debug -lQt5PacketProtocol_debug -lqmldbg_tcp_debug -lqgenericbearer_debug -lqquicklayoutsplugin_debug -lqtquick2plugin_debug -lQt5QmlWorkerScript_debug -lqtquicktemplates2plugin_debug -lqtquickcontrols2plugin_debug -lqtquickcontrols2fusionstyleplugin_debug -lqtquickcontrols2universalstyleplugin_debug -lqtquickcontrols2materialstyleplugin_debug -lqtgraphicaleffectsprivate_debug -lwindowplugin_debug -lqtgraphicaleffectsplugin_debug -lqtquickcontrols2imaginestyleplugin_debug -lQt5QuickControls2_debug -lQt5QuickTemplates2_debug -lQt5Quick_debug -lQt5Gui_debug -lqtlibpng_debug -lqtharfbuzz_debug -framework CoreText -framework CoreGraphics -lQt5QmlModels_debug -lQt5Qml_debug -lQt5Network_debug -framework Security -framework SystemConfiguration -framework GSS -lQt5Core_debug -framework CoreFoundation -framework Foundation -lqtpcre2_debug -Xlinker -dependency_info -Xlinker /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/contactlist.build/Debug-iphoneos/contactlist.build/Objects-normal/arm64/contactlist_dependency_info.dat -o /Users/qt/RTA/qt5/Examples/Qt-5.14.1/quickcontrols2/build-contactlist-Qt_5_14_1_for_iOS-Debug/Debug-iphoneos/contactlist.app/contactlist Undefined symbols for architecture arm64: "qInitResources_()", referenced from: qtquickcontrols2plugin_debug_plugin_resource_init() in libqtquickcontrols2plugin_debug.a(qtquickcontrols2plugin_debug_plugin_resources.o) qtquickcontrols2fusionstyleplugin_debug_plugin_resource_init() in libqtquickcontrols2fusionstyleplugin_debug.a(qtquickcontrols2fusionstyleplugin_debug_plugin_resources.o) qtquickcontrols2imaginestyleplugin_debug_plugin_resource_init() in libqtquickcontrols2imaginestyleplugin_debug.a(qtquickcontrols2imaginestyleplugin_debug_plugin_resources.o) qtquickcontrols2materialstyleplugin_debug_plugin_resource_init() in libqtquickcontrols2materialstyleplugin_debug.a(qtquickcontrols2materialstyleplugin_debug_plugin_resources.o) qtquickcontrols2universalstyleplugin_debug_plugin_resource_init() in libqtquickcontrols2universalstyleplugin_debug.a(qtquickcontrols2universalstyleplugin_debug_plugin_resources.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)** BUILD FAILED ** The following build commands failed: Ld Debug-iphoneos/contactlist.app/contactlist normal arm64 (1 failure) make: *** [xcodebuild-debug-device] Error 65 10:05:44: The process "/usr/bin/make" exited with code 2. Error while building/deploying project contactlist (kit: Qt 5.14.1 for iOS) When executing step "Make" 10:05:44: Elapsed time: 00:04.

      Same error when building with debug or release.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-81255
          # Subject Branch Project Status CR V

          Activity

            People

              vestbo Tor Arne Vestbø
              mipohjan Milla Pohjanheimo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes