问题
I'm trying to load my application on my Jailbroken iPhone 6S running iOS 9.1. I previously had an iPhone 5s running some type of iOS 8 and it was also jailbroken, but I did not have any problems running my apps on that. I have tried all solutions for the specific error I'm getting, but it has not helped at all. Also, I did run my application successfully on an iPad for whatever that means.
I have tried every solution on this page: Error : The service is invalid
iPhone Specs & Related Stuff:
iPhone 6s - iOS 9.1 - 13B143
AppSync Unified v5.8 - AppCake
Jailbroken w/ Pangu 9
Xcode Build Settings - Code Signing: (If it helps) Build Settings - Code Signing
回答1:
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 folderExecute 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.
回答2:
If your phone is jailbroken, just connect to your phone (by ssh, iFunBox, whatever), and clear all contents under directory `/Developer/'. Reconnect to Xcode and Xcode will regenerate the contents it needs. Then you'll be fine.
来源:https://stackoverflow.com/questions/36267670/xcode-7-3-ios-9-1-jailbroken-please-check-your-setup-and-try-again-0xe80