Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to fix Qt Creator errors after installing macOS Mojave?



  • Qt Creator is unable to compile my unchanged code after installing macOS 10.14 Mojave.

    First of all, there is a warning as soon as I open the project. It says "Project WARNING: Qt has only been tested with version 10.13 of the platform SDK, you're using 10.14. (...) Please downgrade the SDK you use to build your app to version 10.13 (...)"

    Attempting to compile then gives me the following error: "qglobal.h:45:12: fatal error: 'type_traits' file not found"

    Would downgrading SDK to 10.13 fix this? And how do I do that? I appreciate your help.

    [Qt version 5.11.2]
    [macOS 10.14 Mojave]


  • Lifetime Qt Champion

    Hi,

    Did you also upgrade Xcode to 10.0 ?

    AFAIR, currently, you can't download older versions of the SDK unless you download an older version of Xcode.

    It's not ideal but you can alway build Qt yourself. It's not complicated on macOS.



  • @SGaist Thank you. Yes my Xcode is version 10.0. I suppose a Mojave compatible version of Qt can't be far off. I'll wait.


Log in to reply