string value always shows nil in objective C

前端 未结 4 513
野的像风
野的像风 2021-02-01 01:32

I have upgraded to Xcode 5.0. And when I run an app in debug mode and try to print an NSString value in console, it gives me the below error. Any ideas?

         


        
4条回答
  •  自闭症患者
    2021-02-01 02:24

    You might be trying to debug in the "release Scheme". Go to "Product/Scheme/Edit Scheme" and pick the "run" in the left panel. Then change the build configuration to "debug".

提交回复
热议问题