‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
来源:互联网 发布:360新一代安全网络导航 编辑:程序博客网 时间:2024/05/18 11:21
在xcode中出现:
‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
然后用单步调式模式出,一些变量出现空值,并且,不按顺顺执行语句。
方法,
工程在编译之后被优化了,所以导致单步的时候程序表现异常,变量也都不能访问了。这是由于编译的时候选择的是 release,而 release 的时候是会做很多优化,导致上述结果。
解决方法
把编译方式改为Debug。
具体步骤
1.
2.
3.
0 0
- ‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
- iOS xcode ‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be av
- was compiled with optimization - stepping may behave oddly; variables may not be available.
- ieltsListen was compiled with optimization - stepping may behave oddly; variables may not be availab
- [app-name] was compiled with optimization - stepping may behave oddly; variables may not be availabl
- xcode 项目 was compiled with optimization -stepping may behave oddly ;variable may not be available
- 'Project Name' was compiled with optimization - stepping may behave oddly
- 系统升级到iOS9,真机运行报“was compiled with optimization - stepping may behave oddly...”,闪退
- ‘XXXX’ was compiled with optimization
- ‘XXXX’ was compiled with optimization
- 运行的时候报 variables may not be available.
- was compiled with optimization
- was compiled with optimization
- 'XXX ' was compiled with optimization
- ‘XXX’ was compiled with optimization
- [IOS]'Project Name' was compiled with optimization
- May be...
- [IOS/Swift]'Project Name' was compiled with optimization
- css clientheight、offsetheight、scrollheight详解
- JavaScript数据类型--值类型和引用类型
- 文章标题
- C命令行实参
- Hyperledger Fabric V1.0– 开发者快速入门
- ‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
- 链路层介绍
- 设计模式笔记之----策略模式
- Blockchain的鱼和熊掌系列(三)GHOST协议
- CODEVS 1332 上白泽慧音
- Failed to sync Gradle project
- I/O重定向
- (三)Lua脚本语言入门
- codeves天梯 邮票面值设计