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

An app from the QtC new project wizard fails to configure for iOS simulator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.3.2, 6.4.0
    • None
    • iOS/tvOS/watchOS

    Description

      I did not get to iOS for a while but just now I tried to run a simple Widget and Qt Quick app on all, iOS device, iOS simulator and macOS for some testing purposes. The iOS device and macOS targets worked, but the iOS simulator target failed while configuring the project. This happens the same on 6.4.0 and 6.3.2. It is on Xcode 14, preset for iOS16 on macOS 12.6.1. A simple Swift UI app in Xcode works OK on the iOS simulator. 

      Here is the log from configuring the project, the attachment shows the status of the 6.4.0 kit.

      Running /Users/vladimir/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -S /Users/vladimir/development/misc/untitled19 -B /Users/vladimir/development/misc/build-untitled19-Qt_6_4_0_for_iOS_Simulator -DCMAKE_GENERATOR:STRING=Xcode '-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/Users/vladimir/Qt/Qt Creator.app/Contents/Resources/package-manager/auto-setup.cmake' -DQT_QMAKE_EXECUTABLE:FILEPATH=/Users/vladimir/Qt/6.4.0/ios/bin/qmake -DCMAKE_PREFIX_PATH:PATH=/Users/vladimir/Qt/6.4.0/ios -DCMAKE_C_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/Users/vladimir/Qt/6.4.0/ios/lib/cmake/Qt6/qt.toolchain.cmake -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 -DCMAKE_OSX_SYSROOT:STRING=iphonesimulator -DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG in /Users/vladimir/development/misc/build-untitled19-Qt_6_4_0_for_iOS_Simulator.
      -- The CXX compiler identification is unknown
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
      -- Looking for C++ include pthread.h
      -- Looking for C++ include pthread.h - found
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE  
      -- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/lib/libz.tbd (found version "1.2.11") 
      -- Found WrapSystemZLIB: TRUE  
      -- Using system ZLIB.
      -- Found WrapZLIB: TRUE  
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE  
      -- Looking for backtrace
      -- Looking for backtrace - found
      -- backtrace facility detected in default set of libraries
      -- Found Backtrace: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include  
      -- Using Qt bundled PCRE2.
      -- Found WrapPCRE2: TRUE  
      -- Performing Test HAVE_GETTIME
      -- Performing Test HAVE_GETTIME - Success
      -- Found WrapRt: TRUE  
      -- Performing Test HAVE_EGL
      -- Performing Test HAVE_EGL - Failed
      -- Could NOT find EGL (missing: EGL_INCLUDE_DIR HAVE_EGL EGL_LIBRARY) 
      -- Performing Test HAVE_GLESv2
      -- Performing Test HAVE_GLESv2 - Success
      -- Found GLESv2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Library/Frameworks/OpenGLES.framework  
      -- Using Qt bundled PNG.
      -- Found WrapPNG: TRUE  
      -- Using Qt bundled Harfbuzz.
      -- Found WrapHarfbuzz: TRUE  
      -- Using Qt bundled Freetype.
      -- Found WrapFreetype: TRUE  
      -- Using Qt bundled Jpeg.
      -- Found WrapJpeg: TRUE  
      -- Found AVFoundation: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Library/Frameworks/AVFoundation.framework  
      -- Configuring done
      CMake Error in CMakeLists.txt:
        No known features for CXX compiler  ""  version .
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      CMake process exited with exit code 1.Elapsed time: 00:09.
      
      

      Attachments

        Issue Links

          Activity

            People

              qtbuildsystem Qt Build System Team
              vminenko Vladimir Minenko
              Vladimir Minenko Vladimir Minenko
              Volker Hilsheimer Volker Hilsheimer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: