Xcode: Cannot set optimization level for debug

匿名 (未验证) 提交于 2019-12-03 01:44:01

问题:

I can't add it and there's no debug optimization, yet I got the log:

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

More info: I went to the edit build scheme and it's set as debug mode.

回答1:

It looks like you've accidentally deleted your debug configuration. To prove this to yourself, look at your project's Info pane. You should see this ― but I'm betting you won't:

A configuration is just a name, so you can easily recreate the debug configuration right here in the project settings; but that won't magically restore all the corresponding default build setting values. Your best bet is to consider this project hosed: make a new project, to get the template's values for the build settings, and migrate everything from this project into it.



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