在xcode 5中通过推送通知启动时如何调试应用程序
我正在使用Xcode 5.我正在iOS中推出推送通知。我可以在iOS设备上轻松地调试背景模式和前台模式,而且可以获得令人满意的结果。
I am using Xcode 5. I am working with push notifications in iOS. I am getting satisfying results for background mode and foreground mode that can be debugged easily on an iOS device.
但问题是应用程式处于关闭状态并由推送通知启动点击但我不知道如何调试在这种情况下。我知道Xcode 4的解决方案,但不是Xcode 5的解决方案。
But problem is when app is in closed state and launched by push notification tap but I don't know how to debug in this situation. I know the solution for Xcode 4 but not for Xcode 5.
所以Xcode 5有什么解决方案,并在推送通知时启动应用程序进行调试?
在这种情况下提供调试步骤。
So is there any solution for Xcode 5 and debugging the app when launching it by push notifications? Provide steps to debug in this situation.
编辑项目方案并将启动设置为等待* .app手动启动。
然后运行该项目或点击cmd + R。调试将开始,但应用程序将不会启动。所以发送你的测试推送通知,并从推开打开应用程序。
你去!
Edit your project scheme and set "Launch" to "Wait for *.app to be launched manually".
Then Run the project or hit "cmd+R". Debugging will started, but the app will be not launched. So send your test push notification, and open the app from the push.
Here you go!