用优化编译Xcode目标 [英] Xcode target compiled with optimization

查看:148
本文介绍了用优化编译Xcode目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



ABC通过优化进行编译 - 步进可能表现异常;变量可能不可用。



我确定了优化(GCC_OPTIMIZATION_LEVEL = 0),但仍然会显示上面的消息。



如何解决这个问题?

解决方案

在调试模式下将编译器优化级别设置为无以外的错误类型。步骤1:转到您的构建设置



第2步:搜索 SWIFT_OPTIMIZATION_LEVEL



步骤3:在调试模式下进入优化级别。 b $ b

第4步:将其更改为无[-Onone]。




I am seeing following warning message, when I build target ABC.

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

I have made sure about optimization (GCC_OPTIMIZATION_LEVEL = 0), but still build is showing above message.

How to resolve this issue?

解决方案

Xcode generally throws this type of error when compiler optimisation level is set other than None in debug mode. To do it follow below steps.

Step 1: Go to your build settings

Step 2: Search for SWIFT_OPTIMIZATION_LEVEL

Step 3: Go to Optimization level in debug mode.

Step 4: Change it into None[-Onone].

这篇关于用优化编译Xcode目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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