How do you debug an issue with a release mode build in iOS?

Normally Debug builds have optimisation disabled (-O0) to make debugging easier, whereas Release builds have optimisation enabled (-O3 or -Os), which makes the code run much faster, but also makes debugging harder (but not impossible). You can just go into the build settings in Xcode in the Debug configuration and temporarily turn up the optimisation level – this will keep all the other debug goodies (symbols etc) but hopefully also flush out the Release mode bug. (Don’t forget to reset the optimisation level to -O0 in the Debug configuration when you’re done!)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)