我是否应该将带有打印语句的应用发布到App Store? [英] Should I release an app to the App Store with print statements in it?

查看:161
本文介绍了我是否应该将带有打印语句的应用发布到App Store?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算在TestFlight之后不久将我的应用发布到App Store.我有很多带有print语句的视图控制器. print语句用于测试目的(调试器),用户将永远看不到它们.

I intend to release my app to the App Store soon (after TestFlight). I have quite a few view controllers with print statements in them. The print statements are for testing purposes (debugger) and the user will never see them.

发布后在应用程序中包含或不包含打印语句会有所不同吗?

Will it make any difference if I do or don't include the print statements inside the app once I release it?

即使在几毫秒之间切换场景,打印语句在降低速度方面是否会有任何不同?

Will the print statements make any difference as far as reducing speed when switching between scenes even if by milliseconds?

我可以拒绝将它们包含在我的应用程序中吗?

Can I get rejected for including them inside my app?

在一些vc中,为了清晰起见,我打印了uid.通过在应用程序中包含这些打印语句,是否存在安全风险?

In couple of vcs I print the uids just for clarity on my part. Are there any security risks by including those print statements in the app?

推荐答案

我假设您使用的是Swift,那么print是完全安全的,即使对于AppStore版本也是如此.您将不会被拒绝,这也不是安全隐患.

I assume you are using Swift, then print is completely safe, even for AppStore builds. You are not going to be rejected and it's not a security risk either.

print不会在用户可见的任何地方(例如,在Xcode设备控制台中)生成任何日志.

print, unlike similar NSLog, is not going to produce any logs anywhere that would be visible to the user (e.g. in Xcode Device Console).

有关printNSLog之间差异的更多信息: Swift:打印()vs println()vs NSLog()

More info on the difference between print and NSLog: Swift: print() vs println() vs NSLog()

这篇关于我是否应该将带有打印语句的应用发布到App Store?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆