Here are the steps I followed (Xcode 4.3 and iOS 5.1.1):
-
Create a self signed certificate from Keychain (the only that must be changed is the type of certificate which must be Code Signing, this is in the first form).
-
This is easily reverseable by restoring the
.bak
file or inverting the sed substitution:sudo /usr/bin/sed -i .bak 's/XCiPhoneOSCodeSignContext/XCCodeSignContext/' \ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Info.plist
-
Restart Xcode! (really)
-
Got to your project's Build settings (show them all) and change the Code Signing Identity with the one you created at the first step.
There are more steps here that cover debugging but I don't want to go there just yet :) http://techtalktone.wordpress.com/2011/12/05/testing-your-ios-apps-on-a-jailbroken-device-2/