[How To] Fake Code Sign Your Apps For Cydia submission + iPad Apps

Discussion in 'iOS Development' started by Freerunnering, Jun 9, 2010.

  1. Freerunnering

    Freerunnering Member

    Joined:
    Sep 1, 2009
    Messages:
    296
    Likes Received:
    0
    Device:
    4G iPod touch
    Ok now there is already the ldid tutorial but you probably would have seen if you tried using it with an iPad app that you get errors.

    So here's a faster better more reliable method that works off up through the SDK's to the 4.0 beta's and above.

    This has been working on all versions of Xcode 3.1.4, 3.2.2, and the latest 3.2.3 beta for iPhone OS 4.0.

    You must first make a ‘Jailbroken Developer' certificate with keychain access, which only needs to be done once. Make sure Xcode isn’t open. To do this:

    • Open up Keychain Access in Applications>Utilities.
    • Go to Keychain Access > Certificate Assistant > Create a Certificate.
    • For ‘Name’, type: [whatever you want], i used "Jailbroken Developer".
    • For ‘Identity Type’, leave it as ‘Self Signed Root’.
    • For ‘Certificate Type’, choose ‘Code Signing’.
    • Check the box for ‘Let me override defaults’.
    • Click on Continue, and in the popup box that comes up.
    • Type in any number under ‘Serial Number’.
    • Leave ‘Validity Period (days)’ alone.
    • Click on Continue.
    • Fill in the details with whatever you want (not really necessary).
    • Click on Continue.
    • Click on Continue for the rest of the dialog boxes.

    The last screen that shows up should say ‘Your certificate has been successfully created.”.
    Click on the Done button, and close out of Keychain Access.


    Now comes the next step, which is to edit the Info.plist for the iPhoneOS.platform container:

    1. Open /Developer/Platforms/iPhoneOS.platform/Info.plist with Property List Editor.
    2. Look for all ‘XCiPhoneOSCodeSignContext’. Replace that with ‘XCCodeSignContext’. There should be two or three to replace.
    3. Save the file.
    4. Restart Xcode, and build your app for a device.



    Before you can build your app you must open up your project settings in Xcode (Project>Edit Project Settings), go to the Build tab, and under ‘Code Signing’, extend ‘Code Signing Identity’ choose ‘Jailbroken Developer’, which should be the name of the certificate you just made.

    ENJOY


    Please Register or Log in to view images

  2. Ryan

    Ryan Well-Known Member

    Joined:
    Jan 19, 2008
    Messages:
    4,129
    Likes Received:
    28
    Device:
    Nexus 4
    You sure this works? I have the 3.1.2 SDK letting me run apps but i had to patch it much more than this in the terminal.
  3. Freerunnering

    Freerunnering Member

    Joined:
    Sep 1, 2009
    Messages:
    296
    Likes Received:
    0
    Device:
    4G iPod touch
    Well i wrote another guide on using ldid and that failed for iPad apps and now i've switched to this method and it's code signing all my iPhone apps fine!
    I don't know (personally) if this works for iPad apps but i don't get errors with this i can run apps signed this way on my iPod (both 1G & 2G on 3.0 & 3.1.2) fine!!

    I saw those complex guides to but fine this works better cleaner and is safer as your messing with less files!

    I think it just tells Xcode to sign apps as it would sign things normally (like desktop programs) instead of requiring it to be an apple developer certificate?

    Either way it works well.


    Please Register or Log in to view images

  4. Ryan

    Ryan Well-Known Member

    Joined:
    Jan 19, 2008
    Messages:
    4,129
    Likes Received:
    28
    Device:
    Nexus 4
    Just lets you build right? Dosnt let you Build and Run on the device does it?
  5. Freerunnering

    Freerunnering Member

    Joined:
    Sep 1, 2009
    Messages:
    296
    Likes Received:
    0
    Device:
    4G iPod touch
    Yes it does!

    I've made tested run and submitted to cydia apps signed this way!!

    If you want to check then get iHackerPro from modmyi repo, the latest version of that was signed this way.


    Please Register or Log in to view images

  6. Arths

    Arths New Member

    Joined:
    Dec 28, 2008
    Messages:
    181
    Likes Received:
    0
    I'm getting this error with 4.0 SDK.

    Please verify that your device’s clock is properly set, and that your signing certificate is not expired.

    (0xE8008018).

    Any help?

    Please Register or Log in to view images

  7. Freerunnering

    Freerunnering Member

    Joined:
    Sep 1, 2009
    Messages:
    296
    Likes Received:
    0
    Device:
    4G iPod touch
    Have you set all the 'XCiPhoneOSCodeSignContext’ to 'XCCodeSignContext’?

    Also check you set the certificate to expire in a year or so so it doesn't tun out?


    Please Register or Log in to view images

  8. Arths

    Arths New Member

    Joined:
    Dec 28, 2008
    Messages:
    181
    Likes Received:
    0
    Yeah I did everything.
    Certificate is fine too. I've set Code Signing Certificate in Project Settings. I selected Device - Release. Build and Run. It builds fine but then wont install. :l
  9. Freerunnering

    Freerunnering Member

    Joined:
    Sep 1, 2009
    Messages:
    296
    Likes Received:
    0
    Device:
    4G iPod touch
    Is that the only error?
  10. Arths

    Arths New Member

    Joined:
    Dec 28, 2008
    Messages:
    181
    Likes Received:
    0
    Yep. The only one

    Please Register or Log in to view images


    ------------------double post merged------------------
    I'll try again but.. I doubt it will works.

Share This Page