I found a resolution that is reliable. I feel had to go to the extremes to copy the shared cache symbols from my watch.
For my Apple Watch symbol-copy problem, I had to use both the UI setting and a caffeinate session while Xcode is preparing the watch. I had to keep the MacBook plugged in and do this:
Apple menu → System Settings → Battery → Options
Turn on:
Prevent automatic sleeping on power adapter when the display is off
Apple describes this setting as preventing the Mac from sleeping while plugged in even if the display is off.
Then go to:
System Settings → Lock Screen
Set:
Turn display off on power adapter when inactive: Never
Apple’s Lock Screen settings control when the display turns off while on power adapter.
Then, I had to go to the terminal command for extra insurance, and run this:
caffeinate -dimsu
Leave that Terminal window open while Xcode is preparing the watch.
Meaning:
-d prevent display sleep
-i prevent idle sleep
-m prevent disk sleep
-s prevent system sleep while plugged in
-u declare user activity
When you are done, press:
Control + C
For good measure, I used my wife's automatic clicker that she uses for her phone, so that I could click on my apple watch, to keep it awake. The device looks like this:
https://www.walmart.com/ip/Automatic-Clicker-for-Phone-Auto-Screen-Clicker-Screen-Device-Automatic-Tapp/17945065201?wmlspartner=wlpa&selectedSellerId=103146102&sourceid=dsn_gdn_0c92c416-dbd6-42ec-845c-ecf69af2153d&veh=dsn&wmlspartner=dsn_gdn_0c92c416-dbd6-42ec-845c-ecf69af2153d&cn=0042_fy27_mp_mpa_lo_int_dis_pmax-p13n&wl9=pla&wl11=online&gad_source=1&gad_campaignid=23148469844&gbraid=0AAAAADmfBIpy4X5QmYJAMTTnDovmz6_yD&gclid=EAIaIQobChMIkJPwzISClQMVGCdECB0wdhppEAQYBCABEgJCqfD_BwE
Crazy work. I feel I shouldn't have had to go through all of this, but I guess it is what it is for the time being.
I hope all. of this helps those run encounter trouble with this in the future.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: