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

一个人想着一个人 提交于 2021-02-07 06:49:17

问题


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.


回答1:


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:




回答2:


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

Other C Flags: -DRUNTIME_IL2CPP=1


来源:https://stackoverflow.com/questions/47302748/optimization-stepping-may-behave-oddly-variables-may-not-be-available-in-xcod

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!