Administratorteki-iPhone:/Developer/usr/bin root# ./debugserver -x spring host:6789 /var/mobile/Applications/659039CC-974C-4C28-B23C-41D7A9641F2A/fanoronafree.app/fanoronafree
debugserver-199 for armv7.
error: failed to launch process ./debugserver: failed to get the task for process 27413
Administratorteki-iPhone:/Developer/usr/bin root#
Patching for process attachingThe vanilla debugserver cannot attach to any processes due to lack of entitlement to allow task_for_pid(). An entitlement must be inserted to the binary to allow this.
0. cd ~
1. Thin the binary because ldid does not support fat binaries:
lipo -thin armv6 /Developer/usr/bin/debugserver -output ~/debugserver
2. Save for following as ent.xml:
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.springboard.debugapplications</key>
<true/>
<key>get-task-allow</key>
<true/>
<key>task_for_pid-allow</key>
<true/>
<key>run-unsigned-code</key>
<true/>
</dict>
</plist>3. Apply the entitlement with ldid:
ldid -Sent.xml debugserver