Debug third-party programs in IOS

Source: Internet
Author: User

The key to determining whether an app can be debugged is the compiled code sign entitlements.
You only need to add the following fields in entitlement:
<Key> Get-task-Allow </key>
<True/>

The execution file can be debugged.

 

The modification method is as follows:

1. Copy the debug execution file to Mac.
2. Use the ldid tool to export its Code Sign
 
Ldid-e helloworld> helloworld.txt
 
3. modify the code sign and add the above fields.
4. re-align and Code Sign
 
Ldid -shelloworld.txt./helloworld
 
5. copy back to the device and change the permission to 755.
 
Chmod 755./helloworld
 
6. Open xcode-> product-> attach to process-> by process PID and enter helloworld.

 

StartProgramThen the Debugging starts automatically.

Of course, this method is suitable for jailbreaking devices, because in this way, you can grant permissions to them.

The app must also be a version not released through the Apple store, because Apple will encrypt the signature of each app.

In the future, we will explain how to debug encrypted devices.

Related Article

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.