Headers crashed after macOS update.
-
Hello. Yesterday I updated my MacBook to MacOS Ventura 13.5.2. Today after I loaded my project I noticed that my headers are crashed. Screen shot below:
I have also problem with "type_traits". I have no idea what is going about...
This the first time I have problem with headers iostream...
Any idea how should I solve this problem?
I was thinking about reinstall Qt Creator but I 'm not sure this idea will be right.
Have a good day
BushyAxis793 -
I found a solution:
- Click "Project" section on left side
- 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
- Build project
- Everything should work without errors
Have a good day
-
Hi,
Did you also update Xcode and the command line tools ?
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
Is it a qmake based project ?
-
@BushyAxis793 might be a silly question but did you do a full rebuild ?
-
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.
-
Does Xcode's default SDK point the current one ?
-
I found a solution:
- Click "Project" section on left side
- 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
- Build project
- Everything should work without errors
Have a good day
-