NSLog crashing app using 3.1.3 software

Posted by Matt Facer on Stack Overflow See other posts from Stack Overflow or by Matt Facer
Published on 2010-03-04T08:37:08Z Indexed on 2010/03/15 11:49 UTC
Read the original article Hit count: 407

Hi guys - the other day I had a bug submitted for my app from a user on an ipod 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!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk