Cordova应用突然在Xcode中没有控制台日志 [英] Cordova app suddenly has no console log in Xcode
问题描述
我的Cordova应用程序已在Xcode控制台中输出console.log。然后突然有一天(不确定发生了什么),它只是空白。我按照此处的说明进行操作,但没有任何效果 Xcode 4 -调试区域不再显示我的控制台输出(NSLog)
My Cordova app has been output console.log just fine in Console of Xcode. Then suddenly one day (not sure what happened), it just shows blank. I followed the instructions here but nothing works Xcode 4 - Debug Area no longer shows my console output (NSLog)
这是我所拥有的:
这始终显示但空白:
更新1
我尝试了旧的代码库,也没有控制台日志。因此,这看起来像特定于Xcode的配置。
I tried an old codebase and no console log either. So this looks like Xcode configuration specific. Something messed up randomly and automatically.
推荐答案
我发现部署到设备并开始可能需要一分钟。如果在部署后立即手动打开该应用程序,则它是另一个实例,并且在Xcode中没有调试可用。您必须等待Xcode本身运行应用程序以显示控制台信息。
I found out the deployment to device AND start may take up to a minute. If you open the app manually right after it deployed, it is a different instance and no debug available in Xcode. You have to wait for Xcode to run the app itself to show console info.
这篇关于Cordova应用突然在Xcode中没有控制台日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!