[Interest] how to use Qt debug libraries in Xcode

Hamish Moffatt hamish at risingsoftware.com
Thu Jul 23 10:32:15 CEST 2020


Hi,

I need to run with the Qt debug libraries in Xcode in order to debug a 
weird problem I'm having side Qt.

https://doc.qt.io/qt-5/debug.html says to set DYLD_IMAGE_SUFFIX=_debug, 
but my attempts at this are not working.

In the Xcode project's run/debug scheme, DYLD_IMAGE_SUFFIX is already 
set to $(QT_LIBRARY_SUFFIX). I have changed it there to _debug but that 
didn't help. I have also tried setting QT_LIBRARY_SUFFIX when running 
qmake but that also did nothing.

What is the correct way to set this? I think I've had it working in the 
past but not since Qt 5.8 or so.


Hamish



More information about the Interest mailing list