EDIT: Forcing iOS to mount the DeveloperDiskImage does the trick.
- SSH into your iDevice and duplicate the /Developer folder to /DeveloperPangu, just to be safe.
- Exit your ssh session, or open a new tab
- Download the binary folder from: https://github.com/kpwn/yalu/blob/master/bin/,
cd
to the downloaded folder
Execute this command:./ideviceimagemounter /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.1/DeveloperDiskImage.dmg
Unplug your device
- Open Xcode and and plug your device back in
- Happy debugging! (Just make sure you don't reboot)
And when your done developing:
- SSH into your iDevice
- Do
ps aux | grep Developer
- kill all the processes that are listed
- Do
umount -f /Developer
The original Pangu Developer folder will be restored, and you can reboot again!
Original answer:
I've got the exact same problem. Don't really know what's causing this behavior. Maybe the fact that Pangu races iOS with an malformed DeveloperDiskImage.dmg?
Yeah, it's because of Pangu. If you SSH into your 9.1 device, you'll see that there is a folder called Developer, with a file called neagent, which symlinks to /pguntether. I guess Pangu9 either still uses an exploit in neagent, or it's a leftover file from Pangu8. (Pangu8 used this trick to achieve a tethered jailbreak: https://cansecwest.com/slides/2015/CanSecWest2015_Final.pdf) Don't really know if I can delete it and then reboot, or if that would brick my device.
But I've found a way to still get the app on your device. Just go to Product > Archive, copy the .app from the contents, and sync it to your iPhone. Then just check the logs via the Devices window.