MacOS Mojave Version 10.14 (18A389).

Updated Xcode to version 10.0 (10A255). And now, when I try to crash my Qt project, I get the error:

clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk' [-Wmissing-sysroot] In file included from ../greed/timediagram.cpp:1: In file included from ../../../Qt/5.9.1/clang_64/lib/QtGui.framework/Headers/QtGui:3: In file included from /Users/arsenyspiridonov/Qt/5.9.1/clang_64/lib/QtGui.framework/Headers/QtGuiDepends:3: In file included from /Users/arsenyspiridonov/Qt/5.9.1/clang_64/lib/QtCore.framework/Headers/QtCore:4: In file included from ../../../Qt/5.9.1/clang_64/lib/QtCore.framework/Headers/qglobal.h:47: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:202: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61:15: fatal error: 'string.h' file not found #include_next <string.h> ^~~~~~~~~~ 1 error generated. make: *** [timediagram.o] Error 1 16:13:47: Процесс «/usr/bin/make» завершился с кодом 2. Ошибка при сборке/установке проекта greed (комплект: Desktop Qt 5.9.1 clang 64bit) Во время выполнения этапа «Сборка» 

It is clear that somewhere in the Qt settings you need to fix the version, but where? Or I'm wrong?

    1 answer 1

    Found a solution to a similar problem: https://github.com/pocoproject/poco/issues/2107

    Try changing 2 lines in Darwin-clang-libc ++ with

     CC = $(shell xcrun -find clang) CXX = $(shell xcrun -find clang++) 

    on

     CC = clang CXX = clang++ 
    • Yes FIG knows. I reinstalled Qt, and it all worked. On MacOS Mojave very strange updates now, on previous versions I have seen updates for both Xcode and the Command Line Tool. Now only Xcode - Arseniy Spiridonov