在xcode 5中通过推送通知启动时如何调试应用程序 [英] how to debug app when launch by push notification in xcode 5

查看:171
本文介绍了在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!

这篇关于在xcode 5中通过推送通知启动时如何调试应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆