is NSLog() stored on the device (iPhone etc)? If so, where?

前端 未结 6 763
旧时难觅i
旧时难觅i 2020-12-16 20:18

Should all NSLog() calls be deleted in the final app for iTunes?

In my iOS app, I\'ve got lots of NSLog() for debug. Should I conditionally code them out before uplo

6条回答
  •  星月不相逢
    2020-12-16 20:52

    Try using this for your NSLogs:

    #define DEBUG
    
    #ifdef DEBUG
     NSLog(@"Your tests outputs");
    #endif
    

提交回复
热议问题