How to debug app when launch by push notification in Xcode

后端 未结 3 1720
刺人心
刺人心 2020-12-12 21:53

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 iO

3条回答
  •  臣服心动
    2020-12-12 22:28

    it takes few seconds:

    1- go to edit schema

    2- select run section from left list

    3- then in info tab goto part launch options

    4- select option: wait for executable to be launched

    5- then close the window

    6- run the app : the app will build but not launched because it's waiting for you to launch the app manually

    7- at this time send your notification to your device

    8- tap on the notification and your app will launched and the debugger goes to breakpoints you attached in lines of code

提交回复
热议问题