I have a app that need to use libbz, and when use Xcode to build and launch, it will crash and the console will print:
And I found when I set the compiler settings for debug:
Optimization Level -> Fastest, smallest[-Os]
Link Time Optimization -> No
the crash does not appear.
but for debug, I think the the right compiler settings is:
Optimization Level -> None[-O0]
Link Time Optimization -> Increment
why this happened and what can I do to fix it?