My setup
- macOS 10.14.6
- iOS 13.2.3
- Xcode 11.2
Tried all the "speedrun" tips up till 2019-11-24 without luck.
The wait seemed inevitable but incredibly long in my case:
with a freshly upgraded iOS version.
I then found this comment on reddit which makes the most sense:
This is required when you connect a device with an iOS version that
the respective computer's Xcode didn't see before. It saves them in
/Users/username/Library/Developer/Xcode/iOS DeviceSupport and it does
take a while. Don't restart Xcode as it will not help you, just wait
for it to finish.
It takes quite some time because these debugger
support files occupy a lot of space (29 GB for me), though you can
safely delete any version from there, and if you connect a device with
that version again, it will re-save it from scratch.
So if you just upgraded your iOS, then the "from scratch" part could take longer than usual, also depending on your network condition. In my case, it is definitely much much longer than the "10-15min" other people claimed. I measure it by hours.
A lot of tricks seem to have worked but they neglect the fact that time goes on as you try things while Xcode keeps working on the setup in the background, and quite possibly resumes its job whenever you do a restart/reboot cycle.
This led me to noticing that my Xcode version is just one step behind the iOS point release. After upgrading my Xcode, it worked.
But it took longer because I removed the iOS DeviceSupport folder by following a tip!
So here are my suggestions:
- Check your Xcode version down to the minor version to make sure it should actually support the iOS version.
- Check your Mac's free disk space to make room for newly generated device support content under
~/Library/Developer/Xcode/iOS DeviceSupport
as this tip suggested.
- Check if you have connected your device to a fast-enough USB port, as this tip suggests.
- Wait till Xcode finishes "preparing for debugging".
- If it doesn't finish in a few seconds or minutes, keep waiting.
- DO NOT remove any folder as some tips may suggest. Removal would simply make you wait longer!