且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带有iOS 4.2.1的越狱iPhone 3G无法使用XCode进行调试

更新时间:2022-11-16 21:07:12

越狱3GS / 4.2.1



我尝试了Matthew Frederick的推荐但没有成功。有人碰巧找到了这个问题的解决方案吗?






编辑



3GS 和非越狱 3GS
解决方法,需要非越狱iPhone 3GS 4.2.1(8C148a)

  1. 删除/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1(8C148a)

  2. 将非越狱iPhone 3GS与4.2.1(8C148a)连接

  3. 打开Xcode和管理器

  4. 通过单击管理器中的用于开发按钮配置新iPhone进行开发。

  5. 让它从中提取调试符号重新创建/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1(8C148a)

  6. 拔下它,从管理器中删除

此时您可以再次调试已越狱的iPhone。
干杯!


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, application can't start (it stucks on 'Default.png' screen) and I get Data Formatters temporarily unavailable, will re-try after a 'continue'. (Can't find dlopen function, so it is not possible to load shared libraries.) message in GDB.

When I start debug without enabled breakpoints, application starts without problems.

I tried to do steps decribed there, but without any results.

When I used iOS 4.1 there was a problem with reboots.

On every connect of the iPhone Organiser displays this message:

**Unknown iOS detected** Xcode does not have debugging information for the version of iOS on the device named "iPhone". Xcode can collect debugging data from the device to enable development with this version of iOS. This process only needs to be done once per iOS version, and will take several minutes.

Thanks for any help!

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):

  1. Delete /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148a)
  2. Connect the non-jailbroken iPhone 3GS with 4.2.1 (8C148a)
  3. Open Xcode and Organizer
  4. Configure the new iPhone for development by clicking the "Use for development" button in the Organizer.
  5. Let it extract the debugging symbols from it recreating /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148a)
  6. Unplug it, remove from Organizer

At this point you can debug your jailbroken iPhone again. Cheers!