首页 > 解决方案 > 为生产版本删除 iOS 应用程序中的 console.log

问题描述

我想将 console.log 保留在测试版本中,但在生产版本中我希望将它们删除。我在哪里可以这样做?我需要为此创建代码还是可以在 Info.plist 中设置任何设置?

谢谢你的帮助

标签: iosswiftxcodeconsole

解决方案


如果您正在使用 print("Log")

改成 debugPrint("Log")


推荐阅读