Tiago_nes
Tiago_nes

Reputation: 923

Preparing debugger support for iPhone

I cant install he app on iphone i'm stuck on this message.

"Preparing debugger support for iPhone"

Tried all answers here and still nothing.

It is followed by itunes could not connect to iphone or whatever...

I'm using a virtual mac machine.

Upvotes: 4

Views: 8865

Answers (4)

kakyo
kakyo

Reputation: 11600

My setup

  • macOS 10.14.6
  • iOS 13.2.3
  • Xcode 11.2

Tried all the "speed-it-up" 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 the accepted answer of this question 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!

Upvotes: 0

Tiago_nes
Tiago_nes

Reputation: 923

After hours of research and useless downvotes i got the tiny trouble. My virtualbox was configured to connect the devices over USB 1.0

As soon as i installed extensions pack and switched to USB 2.0 the app started deploying.

Upvotes: 3

Cons Bulaquena
Cons Bulaquena

Reputation: 2113

Using macOS High Sierra. I had my app working by going to my iPhone to configure.

Settings > General > Device Management > Click Trust "(Developer Apps)"

Upvotes: 2

SergeyII
SergeyII

Reputation: 141

For me, the following worked: On iphone open Settings -> Developer -> Clear Trusted Computers. Then disconnect and reconnect the iphone. Confirm that you trust this computer. After that, the error disappeared.

Upvotes: 13

Related Questions