No NSLog after hacking xCode from profile profiles and code signing

I discussed the discussion of this article , here's what I did:

Change /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 script 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

      

This is all I have done. Now I can run my app on the device without any initialization or code signing, but the problem is I don't have a debug message on the console. This is normal on a simulator Does anyone know how I can get them back?
By the way, I am using OSX 10.5.7 and xCode 3.1.4

+2


source to share


1 answer


Are you using a jailbreak? It seems to me that you are abusing the SDK and it will be difficult for you to get support for this.

It is likely that coding is required for correct debugging on the device. Since you got around this, debugging doesn't work.



Perhaps you can connect the debugger manually?

+2


source







All Articles