Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

swift

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.

like image 411
Sakir Sherasiya Avatar asked Nov 15 '17 08:11

Sakir Sherasiya


1 Answers

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

like image 117
joern Avatar answered Oct 19 '22 03:10

joern