I am using the libmobiledevice library for taking screen-shot of the ios6.x device.
When i run the command:
idevicescreenshot -u <device_id>
then it shows error message :
"Could not connect to screenshotr!.
and when i try with sudo it throws some other error message :
"Could not start screenshotr service! Remember that you have to mount the Developer disk image on your device if you want to use the screenshotr service."
Everything works fine for ios5.x device.