6
votes

When i put debug point in project i get this one error

App Name was compiled with optimization - stepping may behave oddly; variables may not be available.

And Also i don't get debug point and xcode not print any log.

If anyone know solution please share.

2

2 Answers

13
votes

You are receiving this message because you set your target's optimization level to one of the Fast options.

Set the Optimization Level to None while debugging to make the message go away and your break points behave normally:

enter image description here

-2
votes

I had the same issue and I solve it adding to Apple LLVM - Custom Compiler Flags:

Other C Flags: -DRUNTIME_IL2CPP=1