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