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

iOS: can not build examples

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 5.12.10
    • 5.12.10
    • Build tools: qmake
    • None
    • macOS10.15.7
      Xcode 12.1Build version 12A7403
      iPadOS14.1
    • iOS/tvOS/watchOS
    • c919fc5f65c1c509370df7e616263ed007931a7a

    Description

      Install Qt5.12.10 iOS binaries via installer, open Creator and select one of the examples and build. Examples/Qt-5.12.10/gui/analogclock used as an example. Build fails with:

       "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -no_deduplicate -dynamic -dylib -arch x86_64 -platform_version ios 14.1.0 14.1 -single_module -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk -o /dev/null -v /var/folders/fk/4g4xbvys68j1wyxg75gzkhcr0000gp/T/--1cf2f5.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.ios.a
      @(#)PROGRAM:ld  PROJECT:ld64-609
      BUILD 18:16:50 Sep 24 2020
      configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
      Library search paths:
      	/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk/usr/lib
      Framework search paths:
      	/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk/System/Library/Frameworks/
      ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk/usr/lib/libc++.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk/usr/lib/libc++.tbd (4 slices)
      ld: building for iOS, but linking in object file built for iOS Simulator, file '/var/folders/fk/4g4xbvys68j1wyxg75gzkhcr0000gp/T/--1cf2f5.o' for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      ===================
      Maybe you forgot to setup the environment?
      

      Full log attached. Same failure with iOS Simulator target and the iOS, and debug/release.

      Same failure with 5.12.9 also.

      Qt6.0.0 iOS examples can be compiled (qmake based) in same env.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            joaijala Johanna Äijälä
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes