Compiling and using ldid on Ubuntu

Source: Internet
Author: User
Ldid is used for iPhone program signature. You can download and install ldid: $ sudoapt-getinstallldid. If you cannot find it, you can compile and install ldid from the source code. 1. Download ldid from saurik $ wgethttp: // container

Ldid is used for iPhone program signature. You can download and install ldid:

$ Sudo apt-get install ldid
If you cannot find it, you can compile and install it from the source code.

1. Download ldid from saurik

$ Wget http://www.linuxidc.com/system/systemfiles/2011/03/ldid-1.0.610.tgz
2. Extract

$ Tar-zxf ldid-1.0.610.tgz
3. Compile

$ Ldid-1.0.610 cd
$ G ++-I.-o util/ldid {,. cpp}-x c util/{lookup2, sha1}. c
4. Put it in the system bin directory.

$ Sudo cp-a util/ldid/usr/bin
5. Execute

$ Ldid-S FILE

 

6. handle errors
If you run ldid-S yourlib directly, the following error may occur:

Util/ldid. cpp (576): _ assert (2: false)
Util/ldid. cpp (581): _ assert (0: WIFEXITED (status ))
Trace/breakpoint trap


You need to set the CODESIGN_ALLOCATE environment variable:
Export CODESIGN_ALLOCATE = $ (your_toolchain)/toolchain/pre/bin/arm-apple-darwin9-codesign_allocate
Ldid-S your. dylib

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.