优化-步进的行为可能会很奇怪;变量可能在Xcode 9.1中不可用 [英] optimization - stepping may behave oddly; variables may not be available in Xcode 9.1

查看:44
本文介绍了优化-步进的行为可能会很奇怪;变量可能在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.

而且我也没有得到调试点,并且xcode不打印任何日志.

And Also i don't get debug point and xcode not print any log.

如果有人知道解决方案,请分享.

If anyone know solution please share.

推荐答案

您收到此消息是因为您将目标的优化级别设置为 Fast 选项之一.

You are receiving this message because you set your target's optimization level to one of the Fast options.

在调试时将 Optimization Level (优化级别)设置为 None (无),以使消息消失并且您的断点行为正常:

Set the Optimization Level to None while debugging to make the message go away and your break points behave normally:

这篇关于优化-步进的行为可能会很奇怪;变量可能在Xcode 9.1中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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