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

前端 未结 6 761
旧时难觅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

    You dont need to remove NSLogs if they added against DEBUG mode. So even if your app crashes and if it contains user personal data, it will be removed by ios. So do not worry about user data and NSLog. Refer https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AnalyzingCrashReports/AnalyzingCrashReports.html Still if you want you can use this PJiOSAppConsole in your application. It will keep logs in your application only. You can use it at runtime by adding snippet in #ifdef then remove whenever you want to go to live. Easy to integrate and use.

提交回复
热议问题