Xcode:无法设置调试的优化级别 [英] Xcode: Cannot set optimization level for debug

查看:247
本文介绍了Xcode:无法设置调试的优化级别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法添加它,也没有调试优化,但是我得到了日志:

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

ProjectName经过优化编译-单步执行可能会产生奇怪的结果;变量可能不可用.

更多信息:我进入了编辑构建方案,并将其设置为调试模式.

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

推荐答案

看来您不小心删除了调试配置.为了向自己证明这一点,请查看项目的信息"窗格.您应该会看到这一点-但我敢打赌您不会:

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.

这篇关于Xcode:无法设置调试的优化级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆