[IOS]'Project Name' was compiled with optimization
来源:互联网 发布:wow 国服 mac 编辑:程序博客网 时间:2024/05/22 15:51
今天调试的时候发现变量都不能查看了。在「lldb」中通过「po」命令来查看总是提示变量未找到。
环境
xcode 7, Swift 2
错误提示
‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
分析
工程在编译之后被优化了,所以导致单步的时候程序表现异常,变量也都不能访问了。这是由于编译的时候选择的是 release,而 release 的时候是会做很多优化,导致上述结果。
解决方法
把编译方式改为Debug。
具体步骤
1.
2.
3.
然后再重新运行,就可以了。
3 0
- [IOS]'Project Name' was compiled with optimization
- [IOS/Swift]'Project Name' was compiled with optimization
- 'Project Name' was compiled with optimization - stepping may behave oddly
- was compiled with optimization
- was compiled with optimization
- 'XXX ' was compiled with optimization
- ‘XXX’ was compiled with optimization
- ‘XXXX’ was compiled with optimization
- ‘XXXX’ was compiled with optimization
- [app-name] was compiled with optimization - stepping may behave oddly; variables may not be availabl
- iOS xcode ‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be av
- ieltsListen was compiled with optimization - stepping may behave oddly; variables may not be availab
- was compiled with optimization - stepping may behave oddly; variables may not be available.
- ‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available
- xcode 项目 was compiled with optimization -stepping may behave oddly ;variable may not be available
- 系统升级到iOS9,真机运行报“was compiled with optimization - stepping may behave oddly...”,闪退
- PCH was compiled with module cache......解决办法
- PCH was compiled with module cache......解决办法
- OC - NSString/NSMutablestring
- struts2中的各种各样的内建校验器的小例子
- Intellij IDEA如何使用Maven Tomcat Plugin运行web项目
- onkey事件在return前焦点切换,onkey事件的变化
- MarkDown
- [IOS]'Project Name' was compiled with optimization
- 接口测试 - httpClient
- OpenGL3.0教程
- 位操作_求二进制中1的个数
- iOS多线程编程之NSThread的使用
- 故障排除(一)
- 看
- 研读:AdAttester Secure Online Advertisement Attestation on Mobile Devices Using TrustZone
- Struts对MVC的实现流程