Stop unsigned binaries from being killed.

I am currently not an approved developer so I must scp my application to my phone. After getting it on the phone successfully, after launch it was killed off immediately. I checked via SSH and it was obvious it was not allowed to run because it was not signed. If this is happening to you run the following command in SSH:

sysctl -w security.mac.proc_enforce=0 security.mac.vnode_enforce=0

Saurik (developer of cydia) tipped me off to this method. Note that it will cause some things not to function properly but a reboot will reset any changes this command has made.

Max

PS: Here’s a nice little screenshot of MxTube v2.0 on my shiny iPhone 3G!

*hint hint* it runs on 2.0 :)

5 Responses to “Stop unsigned binaries from being killed.”

  1. This works great for development but what about releasing apps? Has Cydia been signed or does it use a different work around?

  2. Cydia and other apps use ldid to sign the application, this works aswell.

    Max

  3. Thanks for this tip, but it doesn’t seem to be working for me. :(

    After typing the command, do we need to restart the SpringBoard? What should the permissions for the file be? Thanks.

  4. I heard typing this command makes you unable to connect to unsecure wifi and possibly other problems. The proper way to get your apps working is to sign them with ldid, exactly how Cydia does it. Ldid writes a SHA hash into the binary which the iphone 2.0 requires in all binaries.

    First do this:

    export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform//Developer/usr/bin/codesign_allocate

    (if you don’t do this you will see “codesign_allocate: unknown architecture specification flag: -a armv6 208″ in the next step )

    Then:

    ldid -S HelloWorld.app/HelloWorld

    If successful there will be no output, then scp your binary on to the phone. I found ldid on Saurik’s site where Cydia is hosted.

  5. Tried all the above suggestions, even the suggestion from Cydia FAQs, having the same problem with it crashing. Anyone get it to work properly? Granted, it’s still in progress, but really want this app to work. Fantastic application. Love it.

Discussion Area - Leave a Comment