我已升级到Xcode 5.0.当我在调试模式下运行应用程序并尝试NSString
在控制台中打印一个 值时,它会给我以下错误.有任何想法吗?
error: warning: couldn't get cmd pointer (substituting NULL): Couldn't load '_cmd' because its value couldn't be evaluated
Couldn't materialize struct: the variable 'stringValue' has no location, it may have been optimized out
Errored out in Execute, couldn't PrepareToExecuteJITExpression
Run Code Online (Sandbox Code Playgroud)
这是代码:
NSString *stringValue = [[self.responseArray objectAtIndex:i] valueForKey:@"merchant_name"];
Run Code Online (Sandbox Code Playgroud)
abb*_*ood 80
原因在错误消息中说明:它可能已经过优化 ..这意味着您正在以优化的方式编译和运行代码.
你必须将编译器优化级别从更改Fastest,Smallest
为none
:
为您的项目设置执行相同的操作
归档时间: |
|
查看次数: |
14299 次 |
最近记录: |