2

我一直在关注这篇文章的讨论,这就是我所做的:

编辑/Developer/Platforms/iPhoneOS.platform/Info.plist看起来像这样:

<key>NATIVE_ARCH</key>
<string>armv6</string>
<key>PLIST_FILE_OUTPUT_FORMAT</key>
<string>binary</string>
<key>PROVISIONING_PROFILE_ALLOWED</key>
<string>NO</string>
<key>PROVISIONING_PROFILE_REQUIRED</key>
<string>NO</string>
<key>SDKROOT</key>
<string>iphoneos2.2</string>

然后在我的电脑上运行这个脚本

#!/bin/bash
cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/
dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255
printf "\xc3\x26\x00\x00" >> working
dd if=iPhoneOS\ Build\ System\ Support of=working bs=1 skip=127504 seek=127504
/bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original
/bin/mv working iPhoneOS\ Build\ System\ Support
chmod a+x iPhoneOS\ Build\ System\ Support

这就是我所做的一切。现在我可以在设备上运行我的应用程序而无需任何配置或代码签名,但问题是,我在控制台上没有任何调试消息。在模拟器上没问题。有谁知道我怎样才能让他们回来?
顺便说一句,我使用的是 OSX 10.5.7 和 xCode 3.1.4

4

1 回答 1

2

您使用的是越狱设备吗?在我看来,您正在滥用 SDK,而且您会发现很难获得对此的支持。

为了能够在设备上正确调试,可能需要进行代码设计。由于您已经绕过了这一点,因此调试不起作用。

您可以手动附加调试器吗?

于 2009-10-21T13:13:11.023 回答