Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 13: Build hangs with "iPhone is busy: making Apple Watch ready for development"

Tags:

xcode

watchos

Issue: The build hangs with "iPhone is busy: making Apple Watch ready for development"

Further facts:

  • iOS 14.8
  • iPhone 8
  • watchOS 7.6.2
  • Xcode 13
  • Apple Watch Series 3 + Cellular (42mm)

Does anyone know a solution for that issue?

Many of the developers have the same issue:

  • https://developer.apple.com/forums/thread/691452
like image 845
LuminiCode Avatar asked Oct 10 '21 16:10

LuminiCode


People also ask

Why is it taking so long for my Apple Watch to prepare for update?

If your Apple Watch is stuck on verifying or preparing, it's often because your watch does not have enough storage space available. So if you free up some space on your watch, that should do the trick!

How do I remove Apple Watch from Xcode?

In Xcode 6.3. 2, two steps are necessary: Remove the WatchKit extension from "Target Dependencies" Remove WatchKit extension from "Embed App Extensions"

How long does it take for Apple Watch to prepare for update?

When you're trying to update your Apple Watch, the device usually says the process should take 30 minutes or maybe one hour to complete. Unfortunately, your watch may sometimes change the estimated update time and quickly jump to 5 hours, or even 3 or 5 days.


6 Answers

This is what works for me:

  1. Turn off the Bluetooth from settings in your iPhone from Settings -> Bluetooth (Don't turn it off from the control center)
  2. Quit Xcode
  3. Launch it again
  4. Build and Run
like image 44
Sasan Soroush Avatar answered Oct 24 '22 19:10

Sasan Soroush


I have been struggling with this for some time now. If you don't need the Apple Watch, instead of turning it off completely, you can also turn on airplane mode if configured correctly.

On your watch, go to Settings AppAirplane Mode. Make sure that both WIFI and Bluetooth switches are turned off!

When the bluetooth switch is turned on, a connection will still be established even if your watch is in airplane mode AND bluetooth is turned off on the phone from Control Center. It took me some time to figure this out...

Update: The Bluetooth setting seems to turn itself on again after some time! No idea why... 🤷🏼‍♂️ Keep that in mind and check the setting again if flight mode does not fix your issue.

Using Flutter?

When running flutter doctor, it will give you a clear hint, that your watch is causing the issue.

When trying to build your app e.g. from Android Studio, you might instead find these messages in your log:

The requested device could not be found because no available devices matched the request.

Available destinations for the "dev" scheme:
[list of devices]

Could not build the precompiled application for the device.

Building a deployable iOS app requires a selected Development Team with a Provisioning Profile. Please ensure that a Development Team is selected by:
[instructions how to set the development team]

Ineligible destinations for the "dev" scheme:
[list of devices]

I put these messages here for people googling them. If you have an Apple Watch, then run flutter doctor to check if this is the root cause.

like image 185
ToniTornado Avatar answered Oct 24 '22 20:10

ToniTornado


The solution is:

  • Waiting for 5-20 mins
  • Let your iPhone and Apple Watch on
like image 20
richlira Avatar answered Oct 24 '22 19:10

richlira


I think all answers are overlooked, you don't need 5-20 mins if you let it finish the preparing process, it'll take just a few minutes, 5 mins top.. But regarding fixing this with an upgrade, that's not the case, and I would love to see it fixed, or offered with an option to exclude watch from the dev purpose unless really needed.

like image 39
bra.Scene Avatar answered Oct 24 '22 20:10

bra.Scene


I facing this issue too. This is because the latest xcode only support until iOS 15.2 sdk, but my phone's iOS version is 15.3. Thus, xcode is downloading the iOS 15.3 sdk from your phone that's why takes time (I knew the message is not saying that)

However, I do some testing and it works for me.

  • Get the iOS 15.3 sdk (is 10BG!!!) from my friend xcode's Devices Support iOS folder /Users/XXX/Library/Developer/Xcode/iOS DeviceSupport and paste it to yours one.
  • Downloading the iphone OS device support file from https://github.com/filsv/iPhoneOSDeviceSupport/blob/0e8ef7bc51b982304ed3258454f88ae2d5615ac7/15.3.zip unzip it and paste it in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  • Restart Xcode.
  • Build success without waiting.

Origin From: https://developer.apple.com/forums/thread/691452?answerId=704424022#704424022

like image 29
Edwin Wong Avatar answered Oct 24 '22 21:10

Edwin Wong


The Apple Watch configuration takes around 5 minutes. It's way better to postpone everything and let it run for 5 minutes then the other workarounds - such as disconnecting your watch, turning on/off your iphone, etc

like image 44
George Dobrin Avatar answered Oct 24 '22 21:10

George Dobrin