Qt for ios编译报错:ld: symbol(s) not found for architecture x86_64

Qt使用5.12.2编译ios simulator平台代码,报错:

Undefined symbols for architecture x86_64:

  "_backtrace_from_fp", referenced from:

      QMacAutoReleasePool::QMacAutoReleasePool() in libQt5Core_debug.a(qcore_mac_objc.o)

ld: symbol(s) not found for architecture x86_64

项目配置为macOS10.13 + Qt5.12.2 + xcode9

Qt官网查看5.12平台支持配置

mac10.13从商店无法安装xcode10,需要升级mac10.14,这种方法太麻烦,尝试Qt更低的版本5.10.0

编译通过:

猜你喜欢

转载自blog.csdn.net/weixin_28927079/article/details/96831483