Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 6 Clang missing frameworks on Mac ARM
QtWS25 Last Chance

Qt 6 Clang missing frameworks on Mac ARM

Scheduled Pinned Locked Moved Solved General and Desktop
qt6mac osc++ qt6
4 Posts 2 Posters 753 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    longfingers
    wrote on 7 Oct 2023, 00:57 last edited by longfingers 10 Jul 2023, 01:00
    #1

    I'm trying to build a C++ Qt project for Mac ARM using Qt 6.5.3 in QtCreator and getting the following 2 errors when I build:

    clang: error: no such file or directory: '/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation'
    clang: error: no such file or directory: '/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices'
    

    I have Xcode 13.4.1 installed on MacOS 12.5.1, which should be a supported configuration according to this.
    My .pro file has:

    QMAKE_APPLE_DEVICE_ARCHS = arm64
    

    I have tried selecting different clang compilers (/usr/bin/clang++ and the Xcode compiler path given by 'xcrun -sdk macosx -find clang'). Both produce the same error.
    I also tried adding:

    LIBS += -framework CoreFoundation
    

    But that didn't help, either.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      longfingers
      wrote on 8 Oct 2023, 18:56 last edited by
      #4

      Turns out I was using an old version of crashpad that was explicitly adding in those old libs in the .pri file.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 7 Oct 2023, 18:47 last edited by
        #2

        Hi and welcome to devnet,

        Looks pretty strange but did you check that you have the frameworks located there ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        L 1 Reply Last reply 8 Oct 2023, 17:15
        0
        • S SGaist
          7 Oct 2023, 18:47

          Hi and welcome to devnet,

          Looks pretty strange but did you check that you have the frameworks located there ?

          L Offline
          L Offline
          longfingers
          wrote on 8 Oct 2023, 17:15 last edited by
          #3

          @SGaist Those files don't exist. I'm not sure why the compiler is trying to find them. I installed Xcode and used xcode-select.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            longfingers
            wrote on 8 Oct 2023, 18:56 last edited by
            #4

            Turns out I was using an old version of crashpad that was explicitly adding in those old libs in the .pri file.

            1 Reply Last reply
            1
            • L longfingers has marked this topic as solved on 8 Oct 2023, 18:56

            4/4

            8 Oct 2023, 18:56

            • Login

            • Login or register to search.
            4 out of 4
            • First post
              4/4
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved