NSLog crashing app using 3.1.3 software
the other day I had a bug submitted for my app from a user on an ipo开发者_运维问答d touch with 3.1.3 software. It was a strange bug as no-one else has submitted it yet.
Long story short, it appears that anywhere where I have NSLog() in code it will actually crash the app. I tried stripping out ALL the code other than NSLog(@"hello") and running on my iphone (3.1.3) it indeed did crash. I removed the NSLog and it worked.
Has anyone else had this problem??
PS) I am now aware that we shouldn't release an app with NSLog still in use... so they've all gone now!
I wrap all of my NSLog method calls within a #if DEBUG statement to avoid this situation.
精彩评论