I\'m trying to debug my applications with XCode 3.2.5 and jailbroken iPhone 3G with iOS 4.2.1.
When I start debug with enabled breakpoints, applicat
Additional suggestion besides Fnord's suggestion is to make sure that multitasking, or the "Reenable Functionality" in PwnageTool is not enabled for iPhone 3G jailbroken device.
I'm not sure if this has an effect though. But, it's reasonable to do this if we really want to test it on a real world condition of iPhone 3G.
My completely non-Jailbroken iPhone does this with 4.2.1, and gets exactly the same messages and problems. It's new functionality in the latest version of XCode, so it may well be buggy.
The latest Xcode+SDK drop doesn't know about iOS 4.2.1, because it was published before the latest patch came out. Xcode's Organizer has a new feature that tries to download debug support files directly from the device, but apparently it has some (possibly jailbreak-related) issues for some people.
iOS 4.2.1 is similar enough to 4.2 that Xcode can be coerced to use 4.2 support files to debug on 4.2.1 devices. To do this, simply go to the /Developer/Platforms/iPhoneOS.platform/DeviceSupport
folder and manually copy the Symbols
subfolder and/or the DeveloperDiskImage.*
files from 4.2 (8C134)
to 4.2.1 (8C148)
(or whatever release folder Organizer creates for your device).
In order to get rid of (Re)Collecting Debug Symbols in Organizer (which in fact does nothing) each time the iPhone is presented to the XCode, a simple workaround is to copy:
DeveloperDiskImage.dmg and DeveloperDiskImage.dmg.signature
from the 4.2 (8C134) to the empty 4.2.1 (8C148) folder.
The XCode will recognize device and you'll be able to debug your code, but without debug symbols for the IOS framework. But, the gdb console will be alive and you can use it do debug your code (with debug symbols).
Btw. you can always use Simulator for the full IOS support :-)
Jailbroken 3GS / 4.2.1
I tried Matthew Frederick's recommendation without success. Anyone happened to find a solution to this problem?
EDIT
Please note that I used a jailbroken 3GS and a non-jailbroken 3GS. Workaround, requires a non-jailbroken iPhone 3GS with 4.2.1 (8C148a):
At this point you can debug your jailbroken iPhone again. Cheers!
It's likely that your problem can be solved by reauthorizing your device:
If your iPhone is plugged into the computer, unplug it
In Xcode, display the Organizer (Window->Organizer)
In the Devices area click on your device and delete it.
Just in case, Quit Xcode and then re-launch it.
Open the Organizer again, then plug your iPhone into your computer.
Tell Xcode that yes, you'd like to authorize the device.
If everything works correctly, Xcode will now download device information for 4.2.1.
If this doesn't work then I suggest performing the steps again, but replace step 4 with removing all traces of Xcode from your computer and then reinstalling it. This includes the entire Developer folder.