Xcode4 how to debug a program started by pushnotification or custom URL Scheme

Source: Internet
Author: User

ProgramIf it is started by another program, how can we debug it? Xcode3 has been introduced online, see: http://oleb.net/blog/2010/05/how-to-debug-app-launched-by-remote-event/

I tried it in xcode3, but it failed. Somehow, I installed two versions of xcode, xcode3 and xcode4.

After research, xcode4 can successfully debug the program started by pushnotification or custom URL scheme,

First open scheme, for example:

Then modify the launch option to: Wait for to XXX launch, for example:

In this way, when you debug the program, the program will not run and will start when you receive the next launch message. The next launch message is push notification or custom URL scheme launch.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.