Help with Code Signing

Discussion in 'iOS Development' started by harish87, Feb 18, 2010.

  1. harish87

    harish87 New Member

    Joined:
    Dec 4, 2009
    Messages:
    8
    Likes Received:
    0
    Device:
    3G iPod touch
    Hi guyz,

    I have developed an app with Xcode and i am trying send it to the jailbroken 3.1.2 iPod Touch. However, I am running into trouble with ldid.

    I followed all the instructions from the Tutorial in this site.

    These are the steps i did:

    1) edited the SDKSettings.plist file and changed the CODE_SIGNING_REQUIRED option to NO.

    2) Changed the BUILD options and got the DONT CODE SIGN Option under Code sign Identity bar.

    3) using SSH transferred the app to the iPod Touch.

    4) ran the following command on SSH terminal in the iPod:
    export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate

    5) then ran the ldid command in two different formats:
    Format 1:
    ldid -s /Applications/guitest.app/guitest
    got this error: util/ldid.cpp(660): _assert(0:signature != NULL)

    Format 2:
    ldid -S /Applications/guitest.app/guitest
    got this error: codesign_allocate: object: guitest.app/guitest malformed object (unknown load command 4)
    util/ldid.cpp(582): _assert(0:WEXITSTATUS(status) == 0)


    Please help on these errors....I am unable to find any info on them and if I missed any steps please tell me..


    thanks a lot
  2. raziiq

    raziiq New Member

    Joined:
    Aug 23, 2009
    Messages:
    54
    Likes Received:
    0
    Did you build for Device and release in Xcode?
  3. harish87

    harish87 New Member

    Joined:
    Dec 4, 2009
    Messages:
    8
    Likes Received:
    0
    Device:
    3G iPod touch
    yes I build for "Device (Base SDK 3.1.2) | Release"
  4. ipodmail09

    ipodmail09 Member

    Joined:
    Mar 13, 2009
    Messages:
    269
    Likes Received:
    0
    Device:
    2G iPod touch
    ok once your in terminal ssh into you iPhone/iPod and type this

    ldid -S /Applications/NameOfApp.app/NameOfApp

    and then just respring
  5. R&S

    R&S Member

    Joined:
    Mar 14, 2009
    Messages:
    315
    Likes Received:
    0
    Device:
    4G iPod touch
    Remeber to be root when you run the command.
  6. NolesFans

    NolesFans New Member

    Joined:
    Sep 23, 2008
    Messages:
    404
    Likes Received:
    0
    Device:
    iPod touch
  7. Childofgod

    Childofgod New Member

    Joined:
    Mar 7, 2009
    Messages:
    168
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    I'm having this same problem to the letter. How do I fix it? I've tried all of that but ldid on OSX
  8. wfolly

    wfolly New Member

    Joined:
    Apr 3, 2010
    Messages:
    2
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    I'm with these errors: if I do the Addem Blog tutorial I got the error 1. If I do this other, I got the error 2.

Share This Page