Post Updated 4-14-2010
Fourth update: This works fine on the latest Xcode for iPhone OS 4.0 beta (3.2.3 pre-release) – see notes on the bottom!
Want to develop and test applications ON your actual device, rather than testing it in the simulator without paying a dime? If so, you’re in the right place!
You must first make a ‘pwned provisioning profile’, 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: iPhone Pwned 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.
If successfully created, the last screen that shows up should say ‘Your certificate has ben 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:
- Open /Developer/Platforms/iPhoneOS.platform/Info.plist with Property List Editor.
- Look for all ‘XCiPhoneOSCodeSignContext’ VALUES. Replace that with ‘XCCodeSignContext’. There should be two or three to replace.
- Save the file.
- Restart Xcode, and build your app for a device.
===============
UPDATE!
Open up your project settings in Xcode (Project>Edit Project Settings), go to the Build tab, and under ‘Code Signing’, extend ‘Code Signing Identity’, and choose ‘iPhone Pwned Developer’, which should be the name of the certificate you just made above.
===============
UPDATE2!
You must have the installd patch installed through Cydia on your jailbroken device. You can add the cydia.hackulo.us repo (Manage>Sources>Edit>Add), and install AppSync 3.1.
===============
UPDATE3!
This guide works on the latest Xcode 3.2.2 (pre-release) beta for iPhone OS 3.2.
===============
UPDATE4! 4-14-2010
This guide works on the latest Xcode 3.2.3 (pre-release) beta for iPhone OS 4.0. BUT, don’t update your device to 4.0. It has to be jailbroken if you want to transfer your apps and whatnot (see update2).
===============
You should now be running your app on your device, and, oh yeah, you didn’t pay $pple their $99!

April 14th, 2010
admin
Posted in
Tags: 

Pingback: Hello iFour » 不付费($99)真机测试iPad/iPhone/iTouch应用[亲测]
Pingback: On device testing without paying $99/year | Jonathan Leang's Blog