Mac - 系统升级之后Qt编译提示The platform SDK has been changed from version xx to version xx.

Mac升级之后使用Qt编译某项目提示

The platform SDK has been changed from version 10.15.2 to version 10.15.6. This requires a fresh build. 
Please wipe the build directory completely, including any .qmake.stash and .qmake.cache files generated by qmake.

 

原因

Mac升级之前的SDK和升级之后的版本不一样,需要删除之前qmake产生的文件重新构建

 

解决方法

  • 进入到编译项目的目录:进入到build-file_manage-Desktop_Qt_5_14_2_clang_64bit-Debug这个目录
  • 将这个文件夹中的所有文件都删除(看不到qmake文件,是隐藏了),使用快捷键shift+command+.查看这个文件中的隐藏文件,
  • 比如我的文件是.qmake.stack,右键移入废纸篓,删除即可
posted @ 2022-08-18 16:11  Citrusliu  阅读(108)  评论(0编辑  收藏  举报