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

查看:1038
本文介绍了如何在Xcode中通过推送通知启动时调试应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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中通过推送通知启动时调试应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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