Cordova app suddenly has no console log in Xcode

北城以北 提交于 2019-12-25 07:48:34

问题


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)

Here are what I have:

This always shows but BLANK:

UPDATE 1

I tried an old codebase and no console log either. So this looks like Xcode configuration specific. Something messed up randomly and automatically.


回答1:


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.



来源:https://stackoverflow.com/questions/29179186/cordova-app-suddenly-has-no-console-log-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!