带有iOS 4.2.1的越狱iPhone 3G无法使用XCode进行调试 [英] Jailbroken iPhone 3G with iOS 4.2.1 can't be debugged with XCode

查看:151
本文介绍了带有iOS 4.2.1的越狱iPhone 3G无法使用XCode进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用XCode 3.2.5调试我的应用程序,并使用iOS 4.2.1越狱iPhone 3G。



当我开始调试时带启用断点,应用程序无法启动(它停留在'Default.png'屏幕上)并且我数据格式化程序暂时不可用,将在'继续'后重新尝试。 (无法在GDB中找到dlopen函数,因此无法加载共享库。)消息。



当我启动调试而没有启用的断点时,应用程序启动没有问题。



我试图做的步骤那里,但没有任何结果。



当我使用iOS 4.1时重新启动时出现问题。



每个连接的iPhone Organizer上都会显示以下消息:



**检测到未知的iOS ** Xcode没有名为iPhone的设备上的iOS版本的调试信息。 Xcode可以从设备收集调试数据,以便使用此版本的iOS进行开发。这个过程只需要每个iOS版本完成一次,并且需要几分钟。



感谢您的帮助!

解决方案

越狱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!

这篇关于带有iOS 4.2.1的越狱iPhone 3G无法使用XCode进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆