Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25058

Qt 6.0.0 for iOS fails with CMake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.14.0-rc1
    • iOS Support
    • None
    • iOS/tvOS/watchOS

    Description

      When trying to build an iOS app (touchinteraction or window quick examples) with CMake, the configure fails with the following error:

      Skipping check for license update: Perpetual license.
      Running /Users/assam/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -S /Users/assam/Qt/Examples/Qt-6.0.0/quick/window -B /Users/assam/Qt/Examples/Qt-6.0.0/quick/build-window-Qt_6_0_0_for_iOS-Debug -GNinja -DCMAKE_BUILD_TYPE:String=Debug -DCMAKE_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -DCMAKE_C_COMPILER_TARGET:STRING=aarch64-apple-darwin19.6.0 -DCMAKE_CXX_COMPILER_TARGET:STRING=aarch64-apple-darwin19.6.0 -DQT_QMAKE_EXECUTABLE:STRING=/Users/assam/Qt/6.0.0/ios/bin/qmake -DCMAKE_PREFIX_PATH:STRING=/Users/assam/Qt/6.0.0/ios -DCMAKE_C_COMPILER:STRING=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:STRING=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ in /Users/assam/Qt/Examples/Qt-6.0.0/quick/build-window-Qt_6_0_0_for_iOS-Debug.
      -- The CXX compiler identification is AppleClang 12.0.0.12000032
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - failed
      -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
      -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - broken
      CMake Error at /Users/assam/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.19/Modules/CMakeTestCXXCompiler.cmake:59 (message):
      The C++ compiler"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"is not able to compile a simple test program.It fails with the following output:Change Dir: /Users/assam/Qt/Examples/Qt-6.0.0/quick/build-window-Qt_6_0_0_for_iOS-Debug/CMakeFiles/CMakeTmp
      
      Run Build Command(s):/Users/assam/Qt/Tools/Ninja/ninja cmTC_61068 && [1/2] Building CXX object CMakeFiles/cmTC_61068.dir/testCXXCompiler.cxx.o
      FAILED: CMakeFiles/cmTC_61068.dir/testCXXCompiler.cxx.o 
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ --target=aarch64-apple-darwin19.6.0 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=10.15 -MD -MT CMakeFiles/cmTC_61068.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_61068.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_61068.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
      error: unknown target triple 'unknown-apple-macosx10.15.0', please use -triple or -arch
      ninja: build stopped: subcommand failed.
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-25058
          # Subject Branch Project Status CR V

          Activity

            People

              vikas Vikas Pachdha
              assam Assam Boudjelthia
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes