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

unable to build user created projects for ios on qt 5.15.15

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.15.15
    • Build System: CMake
    • None
    • iOS/tvOS/watchOS

    Description

      Description :
      I have encountered an issue while attempting to build an iOS project using CMake and the Qt 5.15.15. The error message indicates that the "MobileCoreServices" library cannot be found during the configuration of the Qt5Core module.

      Steps to Reproduce :

      1. Create a new CMake-based project targeting iOS.
      2. Configure and attempt to build the project.

      Error :

      /Users/alber/Qt/5.15.15/ios/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:91: error: Library not found: MobileCoreServices /Users/alber/Qt/5.15.15/ios/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:263 (_qt5_Core_process_prl_file) /Users/alber/Qt/5.15.15/ios/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package) CMakeLists.txt:13 (find_package)
      

      Additional Information :

      • This issue seems to be specific to CMake-based projects created by users. Existing examples that are qmake-based seem to work fine.
      • It's worth noting that the existing examples may not encounter this issue because they are qmake-based and may have different mechanisms for handling dependencies.

      Environment :

      MacOS Version: 12.6.7

      XCode Version: 14.0.1 

      Qt Creator Version: 11.0.0

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              alrizwan Alber Rizwan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes