我应该向 App Store 发布带有打印声明的应用程序吗? [英] Should I release an app to the App Store with print statements in it?

查看:17
本文介绍了我应该向 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?

在几个 vcs 中,为了清楚起见,我打印了 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 与类似的 NSLog 不同,不会在用户可见的任何地方生成任何日志(例如在 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:print() vs println() vs NSLog()

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

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

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