Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Headers crashed after macOS update.
QtWS25 Last Chance

Headers crashed after macOS update.

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
14 Posts 3 Posters 1.0k 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.
  • SGaistS SGaist

    Hi,

    Did you also update Xcode and the command line tools ?

    B Offline
    B Offline
    BushyAxis793
    wrote on last edited by
    #3

    @SGaist Thanks for reply. Xcode updated. I will check command tools when I back from work.

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • SGaistS SGaist

      Hi,

      Did you also update Xcode and the command line tools ?

      B Offline
      B Offline
      BushyAxis793
      wrote on last edited by
      #4

      @SGaist Command line tools updated via terminal:

      sudo rm -rf /Library/Developer/CommandLineTools
      xcode-select --install
      

      Still the same errors.

      SGaistS 1 Reply Last reply
      0
      • B BushyAxis793

        @SGaist Command line tools updated via terminal:

        sudo rm -rf /Library/Developer/CommandLineTools
        xcode-select --install
        

        Still the same errors.

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #5

        Is it a qmake based project ?

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

        B 1 Reply Last reply
        1
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          By the way you might be interested in this thread.

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

          1 Reply Last reply
          1
          • SGaistS SGaist

            Is it a qmake based project ?

            B Offline
            B Offline
            BushyAxis793
            wrote on last edited by
            #7

            @SGaist This is cmake project.

            SGaistS 1 Reply Last reply
            0
            • B BushyAxis793

              @SGaist This is cmake project.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @BushyAxis793 might be a silly question but did you do a full rebuild ?

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

              B 1 Reply Last reply
              1
              • SGaistS SGaist

                @BushyAxis793 might be a silly question but did you do a full rebuild ?

                B Offline
                B Offline
                BushyAxis793
                wrote on last edited by BushyAxis793
                #9

                @SGaist Yes I did. No idea how to solve this problem...

                I created new project and add

                #include <iostream>
                

                And can't see any error.

                So I think this could be problem with my project...

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  BushyAxis793
                  wrote on last edited by BushyAxis793
                  #10

                  As I said before I created new project and below is the CMakeList.txt

                  cmake_minimum_required(VERSION 3.5)
                  
                  project(untitled3 VERSION 0.1 LANGUAGES CXX)
                  
                  set(CMAKE_AUTOUIC ON)
                  set(CMAKE_AUTOMOC ON)
                  set(CMAKE_AUTORCC ON)
                  
                  set(CMAKE_CXX_STANDARD 17)
                  set(CMAKE_CXX_STANDARD_REQUIRED ON)
                  
                  find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
                  find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
                  
                  set(PROJECT_SOURCES
                          main.cpp
                          mainwindow.cpp
                          mainwindow.h
                          mainwindow.ui
                  )
                  
                  if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
                      qt_add_executable(untitled3
                          MANUAL_FINALIZATION
                          ${PROJECT_SOURCES}
                      )
                  # Define target properties for Android with Qt 6 as:
                  #    set_property(TARGET untitled3 APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
                  #                 ${CMAKE_CURRENT_SOURCE_DIR}/android)
                  # For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation
                  else()
                      if(ANDROID)
                          add_library(untitled3 SHARED
                              ${PROJECT_SOURCES}
                          )
                  # Define properties for Android with Qt 5 after find_package() calls as:
                  #    set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
                      else()
                          add_executable(untitled3
                              ${PROJECT_SOURCES}
                          )
                      endif()
                  endif()
                  
                  target_link_libraries(untitled3 PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
                  
                  set_target_properties(untitled3 PROPERTIES
                      MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
                      MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
                      MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
                      MACOSX_BUNDLE TRUE
                      WIN32_EXECUTABLE TRUE
                  )
                  
                  install(TARGETS untitled3
                      BUNDLE DESTINATION .
                      LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
                      RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
                  )
                  
                  if(QT_VERSION_MAJOR EQUAL 6)
                      qt_finalize_executable(untitled3)
                  endif()
                  
                  

                  Here is CMakeList.txt from project which I trying to fix:

                  cmake_minimum_required(VERSION 3.5)
                  
                  project(ATLAS VERSION 0.1 LANGUAGES CXX)
                  
                  set(CMAKE_INCLUDE_CURRENT_DIR ON)
                  
                  set(CMAKE_AUTOUIC ON)
                  set(CMAKE_AUTOMOC ON)
                  set(CMAKE_AUTORCC ON)
                  
                  set(CMAKE_CXX_STANDARD 11)
                  set(CMAKE_CXX_STANDARD_REQUIRED ON)
                  
                  find_package(QT NAMES Qt6 COMPONENTS Widgets REQUIRED)
                  find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED)
                  find_package(Qt6 REQUIRED COMPONENTS Sql)
                  find_package(Qt6 REQUIRED COMPONENTS Network)
                  find_package(Qt6 REQUIRED COMPONENTS Core)
                  
                  
                  set(PROJECT_SOURCES
                          main.cpp
                          mainwindow.cpp
                          mainwindow.h
                          mainwindow.ui
                          database.cpp
                          database.h
                          registerwindow.cpp
                          registerwindow.h
                          registerwindow.ui
                          mainpage.cpp
                          mainpage.h
                          mainpage.ui
                          queries.cpp
                          queries.h
                          queries.ui
                          queriescreator.cpp
                          queriescreator.h
                          queriescreator.ui
                          Calculations.cpp
                          Calculations.h
                          Coating_Area.cpp
                          Coating_Area.h
                          Surface_Area.cpp
                          Surface_Area.h
                          Volume.cpp
                          Volume.h
                          Density.cpp
                          Density.h
                          materialgenresdialog.cpp
                          materialgenresdialog.h
                          materialgenresdialog.ui
                          Connections.cpp
                          Connections.h
                          Currencies.cpp
                          Currencies.h
                          operationsdialog.cpp
                          operationsdialog.h
                          operationsdialog.ui
                          simplyoperationsdialog.cpp
                          simplyoperationsdialog.h
                          simplyoperationsdialog.ui
                          simplyoperationwidget.cpp
                          simplyoperationwidget.h
                          simplyoperationwidget.ui
                          simplyoperationdatadialog.cpp
                          simplyoperationdatadialog.h
                          simplyoperationdatadialog.ui
                          operationwidget.cpp
                          operationwidget.h
                          operationwidget.ui
                          operationwidgetmodel.cpp
                          operationwidgetmodel.h
                          operationwidgetdelegate.cpp
                          operationwidgetdelegate.h
                          addonwidget.cpp
                          addonwidget.h
                          addonwidget.ui
                          addonsdialog.cpp
                          addonsdialog.h
                          addonsdialog.ui
                          addonquickview.cpp
                          addonquickview.h
                          addonquickview.ui
                          clampingdialog.cpp
                          clampingdialog.h
                          clampingdialog.ui
                          toolsdialog.cpp
                          toolsdialog.h
                          toolsdialog.ui
                          simplyoperationquickview.h
                          simplyoperationquickview.cpp
                          simplyoperationquickview.ui
                          clampingquickview.cpp
                          clampingquickview.h
                          clampingquickview.ui
                          clampingwidget.cpp
                          clampingwidget.h
                          summarymodel.cpp
                          summarymodel.h
                          toolsdialog.h
                          toolsdialog.cpp
                          toolsdialog.ui
                          toolwidget.h
                          toolwidget.cpp
                          toolwidget.ui
                          toolquickview.h
                          toolquickview.cpp
                          toolquickview.ui
                          globaldata.h
                          globaldata.cpp
                          names.h
                  
                  
                  )
                  
                  if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
                      qt_add_executable(ATLAS
                          MANUAL_FINALIZATION
                          ${PROJECT_SOURCES}
                      )
                  # Define target properties for Android with Qt 6 as:
                  #    set_property(TARGET ATLAS APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
                  #                 ${CMAKE_CURRENT_SOURCE_DIR}/android)
                  # For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation
                  else()
                      if(ANDROID)
                          add_library(ATLAS SHARED
                              ${PROJECT_SOURCES}
                          )
                  # Define properties for Android with Qt 5 after find_package() calls as:
                  #    set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
                      else()
                          add_executable(ATLAS
                              ${PROJECT_SOURCES}
                          )
                      endif()
                  endif()
                  
                  target_link_libraries(ATLAS PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
                  target_link_libraries(ATLAS PRIVATE Qt6::Sql)
                  target_link_libraries(ATLAS PRIVATE Qt6::Network)
                  target_link_libraries(ATLAS PRIVATE Qt6::Core)
                  
                  
                  set_target_properties(ATLAS PROPERTIES
                      MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
                      MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
                      MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
                  )
                  
                  if(QT_VERSION_MAJOR EQUAL 6)
                      qt_finalize_executable(ATLAS)
                  endif()
                  
                  

                  Should I try change something in this file?

                  This is my General Message:

                  Running /Users/mikolajnawrocki/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -S /Users/mikolajnawrocki/Documents/GitHub/ATLAS -B /Users/mikolajnawrocki/Documents/GitHub/build-ATLAS-Qt_6_5_0_for_macOS-Debug in /Users/mikolajnawrocki/Documents/GitHub/build-ATLAS-Qt_6_5_0_for_macOS-Debug.
                  CMake Warning at /Users/mikolajnawrocki/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.24/Modules/Platform/Darwin-Initialize.cmake:303 (message):
                    Ignoring CMAKE_OSX_SYSROOT value:
                  
                     /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
                  
                    because the directory does not exist.
                  Call Stack (most recent call first):
                    /Users/mikolajnawrocki/Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.24/Modules/CMakeSystemSpecificInitialize.cmake:21 (include)
                    CMakeLists.txt:3 (project)
                  
                  
                  -- Configuring done
                  -- Generating done
                  -- Build files have been written to: /Users/mikolajnawrocki/Documents/GitHub/build-ATLAS-Qt_6_5_0_for_macOS-Debug
                  Elapsed time: 00:00.
                  
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Does Xcode's default SDK point the current one ?

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

                    B 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      Does Xcode's default SDK point the current one ?

                      B Offline
                      B Offline
                      BushyAxis793
                      wrote on last edited by BushyAxis793
                      #12

                      @SGaist Here is SDK:

                      f523d5fb-1509-4ea2-998c-598c8bb7b178-image.png

                      So I guess I need to switch to 13.3. But how can I do it?

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        BushyAxis793
                        wrote on last edited by
                        #13

                        I found a solution:

                        1. Click "Project" section on left side
                        2. In CMake section go to CMAKE_OSX_SYSROOT and change:

                        /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk

                        on

                        /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk

                        1. Build project
                        2. Everything should work without errors

                        Have a good day

                        1 Reply Last reply
                        1
                        • B BushyAxis793 has marked this topic as solved on
                        • hskoglundH Offline
                          hskoglundH Offline
                          hskoglund
                          wrote on last edited by
                          #14

                          Just stumbled into the same problem, for me it was sufficient to delete the CMakeLists.txt.user file and restart Qt Creator, then I got my Qt include headers back.

                          1 Reply Last reply
                          2

                          • Login

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