我正在尝试重现问题,这需要在特定位置关闭并重新打开我的应用程序。这是我的问题:
1)如何查看我的日志(使用NSLog
命令)当我的 iPhone 未连接到 XCode 时?
2)是否可以将iPhone模拟器的特定位置(例如市中心)设置为默认位置?我使用 GPX 文件,但每次从头开始运行项目时,位置都会设置为未知。
如果您想查看应用程序的日志
在 XCode 下选择“Window”子菜单和“Devices”子菜单(您可以使用 shift+cmd+2)
on the opened screen in the bottom of the screen you'll see the log from the device even if it isn't in debug state (if you don't see it locate the little up arrow in the bottom left and click on it
).
如果您的设备未连接,您可以在连接时看到崩溃报告
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)