从配置文件和代码签名中破解 xCode 后没有 NSLog

发布于 2024-08-08 15:41:57 字数 1302 浏览 2 评论 0原文

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

编辑< code>/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

I have been following the discussion from this article,this is what I have done:

Edit /Developer/Platforms/iPhoneOS.platform/Info.plist to look like this:

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

Then run this scrip on my computer

#!/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

It's all that I have done. Now I can run my application on the device without any provisioning or code signing, but the problem is, I don't have any debugging message on the console. On simulator it's OK. Anyone know how I can get them back?
By the way, I am using OSX 10.5.7 and xCode 3.1.4

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夢归不見 2024-08-15 15:41:57

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

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

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

Are you using a jailbroken device? It sounds to me that you're abusing the SDK, and you're going to find it difficult to get support for this.

Its likely that to be able to debug properly on the device, codesigning is required. Since you've bypassed this, the debugging isn't working.

You may be able to attach the debugger manually?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文