ios - 为生产版本删除 iOS 应用程序中的 console.log
问题描述
我想将 console.log 保留在测试版本中,但在生产版本中我希望将它们删除。我在哪里可以这样做?我需要为此创建代码还是可以在 Info.plist 中设置任何设置?
谢谢你的帮助
解决方案
如果您正在使用
print("Log")
改成
debugPrint("Log")
推荐阅读
- angular - 如何在 Angular 中实现 360° Producti 查看器
- c# - MassTransit 如何在我发布或使用消息时创建自定义中间件或管道
- angularjs - Validation with Asp.Net Web Forms + Angularjs Tabs如何解决?
- php - 将对象数组更改为多维数组并打印
- c# - 尝试在另一个场景中统一调整比例设置后,移动速度变慢
- javascript - 错误:未能找到匹配选择器 img 的元素
- reactjs - 离子反应侧边菜单不显示
- vim - 我如何编码
在vim中结束/退出括号/引号 - css - 使用圆角边框在其容器内弯曲/环绕文本?(CSS/反应)
- python - 如何加快这个 for 循环