Project ERROR: Cannot run target compiler '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'. Output:

Project ERROR: Cannot run target compiler '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'. Output:

===================
Maybe you forgot to setup the environment?

解决
找到这个文件,并打开
Qt5.15/5.15.1/ios/mkspecs/features/toolchain.prf

第202行

!equals(ec, 0): qtCompilerError($$QMAKE_CXX, $$output)

修改为

!uikit:!equals(ec, 0): qtCompilerError($$QMAKE_CXX, $$output)

posted @ 2021-01-19 17:03  zhaocundang  阅读(909)  评论(0编辑  收藏  举报