Sunday, January 18, 2009

Deploy to your iPhone without Apple's provisioning profiles, in two steps

You will need a mac with OS X 10.5.6 or higher and a jailbroken iPhone with 2.2. Jailbreak using quickpwn
  1. obtain a self signing identity as per Apple's directions, use the name "iPhone developer"
  2. save the following to Info.plist.patch
    54a55,58
    > PROVISIONING_PROFILE_ALLOWED
    > NO
    > PROVISIONING_PROFILE_REQUIRED
    > NO

    Then:
    patch /Developer/Platforms/iPhoneOS.platform/Info.plist Info.plist.patch
  3. (skip if you used "iPhone developer" in step 1) Open your project and go to (menu) Project > Edit Project Settings. In the list of properties, find “Code Signing Identity” > “Any iPhone OS Device” and click in the empty box. Assuming there are no entries in the menu, click “Other” and type in the same name you used to generate the code signing certificate above. Hit OK and close that settings window. This setting should persist in future projects.
You should now be able to build for Device using Xcode. scp the .app to root@your_iphone_name:/Applications/ and reboot the iPhone.

I have collected the links I used in my research at http://delicious.com/nurey/iphone+deploy

No comments: