Sakir Sherasiya
Sakir Sherasiya

Reputation: 1572

optimization - stepping may behave oddly; variables may not be available in Xcode 9.1

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.

Upvotes: 7

Views: 19096

Answers (2)

One Windy
One Windy

Reputation: 1

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

Other C Flags: -DRUNTIME_IL2CPP=1

Upvotes: -2

joern
joern

Reputation: 27620

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

Upvotes: 14

Related Questions