0
点赞
收藏
分享

微信扫一扫

Qt5.12.6生成IOS工程报Cannot run target compiler解决


Qmake生成IOS工程报

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

造成上面错误的原因是因为Qt版本太低,而XCode版本太高所导致 

Qt5.12.6生成IOS工程报Cannot run target compiler解决_g++

 

Qt5.12.6生成IOS工程报Cannot run target compiler解决_g++_02

 

 

修改toolchain.prf

Qt5.12.6生成IOS工程报Cannot run target compiler解决_xcode_03

 

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

改为下面

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

 

修改后,重新用QtCreator构造IOS工程,构建成功如下

Qt5.12.6生成IOS工程报Cannot run target compiler解决_macos_04

 

生成的xcode工程如下

Qt5.12.6生成IOS工程报Cannot run target compiler解决_g++_05

 

运行xcode

Qt5.12.6生成IOS工程报Cannot run target compiler解决_xcode_06

 

 成功安装demo应用到iPhone

Qt5.12.6生成IOS工程报Cannot run target compiler解决_xcode_07

 

 

举报

相关推荐

0 条评论