unlock Mac with Apple Watch

My iMac 24 used to automatically unlock regularly with my watch. Since the latest update it works sometimes but then stops working. All my devices have the latest update and I've restarted my Mac. Any ideas?

iMac 24″, macOS 13.3

Posted on Apr 1, 2023 7:10 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 13, 2023 7:05 PM

Hopefully this will help some poor soul before they spend months and months as I did trying unsuccessfully to resolve this issue. I have a 2019 iMac 8 Core i9 and here is my story:


Auto-unlock worked perfectly since inception up until the April 2023 13.3 Ventura update. When the next few Ventura releases failed to fix the issue I spent dozens of hours over the course of the next 3 or 4 months scouring the internet for any possible solution. You name I did it... dozens of times, over-and-over-and-over, rebooting devices, signing out of iCloud accounts, resetting bluetooth modules, setting up alternate WiFi networks, deleting keychain entries and deleting related finder files. Any sporadic success was short lived and would break again after the very next reboot. I even reinstalled the operating system via Recovery Console, all to no avial.



--------------

My specific error code in terminal was 138. Here is how to see your specific error code(s):


Step 1: Enter this in Terminal:

log stream --predicate 'category == "AutoUnlock" AND eventMessage contains "fail with error"'


Step 2: Attempt an Auto-Unlock


Terminal reported the following error after every failed Auto-Unlock:

sharingd: [com.apple.sharing:AutoUnlock] Client ack'd did fail with error: Error Domain=SFAutoUnlockErrorDomain Code=138 "Ranging Timeout: Couldn’t Find Peer" UserInfo={NSLocalizedDescription=Ranging Timeout: Couldn’t Find Peer}


--------------



**The fix..... reset NVRAM/PRAM. On my 2019 iMac, simply hold down Option, Command, P, and R at startup**


Here are the detailed steps I took, I am not sure all were necessary but the NVRAM/PRAM reset in Step #5 was definitely necessary:


  1. Disable "Use apple Watch to Unlock" in settings.
  2. Delete the numerous keychain files: "autounlock" and "auto unlock"
  3. Deleted the (2) files in  ~/Library/Sharing/AutoUnlock.
  4. Shutdown
  5. Startup while holding (Option, Command, P, and R) to reset the NVRAM/PRAM.
  6. Enable "Use apple Watch to Unlock" in Settings.
  7. Test Auto-Unlock and if still not working, one final shut down and restart was necessary and Auto-Unlock remained persistent!!


Let me know if this helped anyone.

45 replies
Question marked as Top-ranking reply

Aug 13, 2023 7:05 PM in response to Ruff2102

Hopefully this will help some poor soul before they spend months and months as I did trying unsuccessfully to resolve this issue. I have a 2019 iMac 8 Core i9 and here is my story:


Auto-unlock worked perfectly since inception up until the April 2023 13.3 Ventura update. When the next few Ventura releases failed to fix the issue I spent dozens of hours over the course of the next 3 or 4 months scouring the internet for any possible solution. You name I did it... dozens of times, over-and-over-and-over, rebooting devices, signing out of iCloud accounts, resetting bluetooth modules, setting up alternate WiFi networks, deleting keychain entries and deleting related finder files. Any sporadic success was short lived and would break again after the very next reboot. I even reinstalled the operating system via Recovery Console, all to no avial.



--------------

My specific error code in terminal was 138. Here is how to see your specific error code(s):


Step 1: Enter this in Terminal:

log stream --predicate 'category == "AutoUnlock" AND eventMessage contains "fail with error"'


Step 2: Attempt an Auto-Unlock


Terminal reported the following error after every failed Auto-Unlock:

sharingd: [com.apple.sharing:AutoUnlock] Client ack'd did fail with error: Error Domain=SFAutoUnlockErrorDomain Code=138 "Ranging Timeout: Couldn’t Find Peer" UserInfo={NSLocalizedDescription=Ranging Timeout: Couldn’t Find Peer}


--------------



**The fix..... reset NVRAM/PRAM. On my 2019 iMac, simply hold down Option, Command, P, and R at startup**


Here are the detailed steps I took, I am not sure all were necessary but the NVRAM/PRAM reset in Step #5 was definitely necessary:


  1. Disable "Use apple Watch to Unlock" in settings.
  2. Delete the numerous keychain files: "autounlock" and "auto unlock"
  3. Deleted the (2) files in  ~/Library/Sharing/AutoUnlock.
  4. Shutdown
  5. Startup while holding (Option, Command, P, and R) to reset the NVRAM/PRAM.
  6. Enable "Use apple Watch to Unlock" in Settings.
  7. Test Auto-Unlock and if still not working, one final shut down and restart was necessary and Auto-Unlock remained persistent!!


Let me know if this helped anyone.

Nov 5, 2023 8:22 AM in response to Ruff2102

This is very frustrating and as you can probably tell by now there is no ONE fix to this. And the fact is that there are MANY reasons why this may be failing, so the key thing is to try and figure our WHAT is causing this, and only then may you be able to apply an appropriate fix.


As it was mentioned earlier in this thread the 1st thing you should try is to run the following command in Terminal.


Step 1: Enter this in Terminal:

log stream --predicate 'category == "AutoUnlock" AND eventMessage contains "fail with error"'


Leave terminal running and


Step 2: Attempt an Auto-Unlock


Then check to see what error was returned in Terminal. In my case it appeared that I was getting a timeout error, specifically "ranging timeout error" which usually indicates a Wi-Fi issue, so I simply went into System Settings/Network/Wi-Fi/Details/TCP/IP and clicked on "Renew DHCP Lease" and my problem was fixed immediately without having to jump through any of the previous loops of turning things on and off, restarting, etc.


****** So add "Renew DHCP Lease" to the list of things to try.


If you get some other error (and I am sure you will) try and research and see what that error is related to, and you may be able to find the root of your issue.

Oct 19, 2023 6:50 PM in response to ncollingridge

ncollingridge,


I don't think there is anyone on this board that would disagree with your assessment that there is a bug in either MacOS, WatchOS or both. For me Apple Watch unlock worked perfectly from inception up to the April 2023 13.3 Ventura update.


Regardless here is a possible solution. Please perform ALL steps in this exact order:

  1. Force your iMac to use (and stay on) your router's 2.4 GHz Wifi (not 5 GHz).
  2. Turn off "Watch Unlock" on Mac
  3. Turn off WiFi on iMac
  4. Shutdown iMac
  5. Shutdown Watch
  6. Unplug all USB and Thunderbolt devices. If your boot drive is an external thunderbolt, unplug for a minute and plug back in.
  7. Boot up Watch and iMac
  8. Unlock Watch
  9. Turn on WiFi on iMac
  10. Turn on "Watch Unlock" on iMac. If the first attempt at getting the pill indicator to stick should fail, move off of the "Login Password" menu and back on and try again.


At this point there is a 50/50 chance that iMac Unlock with Watch will work. If not, it may take a 2nd reboot of iMac and it will almost always work.


I find that sometimes functionality will survive many reboots and sometimes fails after the very next reboot and requires either the full the steps all over again or as in my case the abridged version below:

  1. Make sure iMac is still forced to use only your router's 2.4 GHz Wifi (not 5 GHz).
  2. Turn off WiFi on iMac
  3. Turn off "Watch Unlock" on Mac
  4. Shutdown iMac
  5. Turn on iMac
  6. Turn on WiFi on iMac
  7. Turn on "Watch Unlock" on iMac


Let me know how you make out. Post with any questions.


CG



Apr 2, 2023 10:58 AM in response to Ruff2102

This happened to me as well. I had to turn off the System Settings -> Login Password -> Apple Watch option. Then completely shutdown the Mac. A restart isn't enough. Then power up the Mac login and turn the Apple Watch option back on. Authenticate with my password. Then lock the screen and see if I can unlock it with the Apple Watch.


It does require the latest iOS 16.4 and WatchOS 9.4 updates since Ventura has been updated to 13.3. Make sure all three devices are logged into the same Apple ID / iCloud account. Make sure Wi-Fi and Bluetooth are enabled on all devices.


  1. Disable Apple Watch unlock feature in Ventura
  2. Completely shutdown and power off
  3. Power back up and turn it back on


This seems to have worked for many people.

May 14, 2023 7:16 AM in response to mrstee

Try powering down the Mac and booting into Safe Mode. You can do that by holding the power button until you reach the Startup Options screen. Then let go and click once on the Macintosh HD boot volume and then press and hold Shift on your keyboard. The prompt below Macintosh HD will change from Continue to Continue in Safe Mode. While holding Shift, click on Continue in Safe Mode. The Mac will boot and have you login twice. When you reach the desktop, let it sit for about 5min. Then shutdown completely and power back on normally. This has the side effect of performing several maintenance tasks behind the scenes that can fix bizarre issues like this.


If it's still having trouble. Try going to Apple Watch on your iPhone then General -> Reset -> Erase Apple Watch Content and Settings. Then setup the Apple Watch again. I know it's tedious but that might fix your particular issue with it not working despite Apple fixing it for most others.

May 18, 2023 1:05 PM in response to Ruff2102

macOS 13.4 Ventura was released this afternoon. It specifically addresses the Apple Watch unlock issue as fixed.


What's new in the updates for macOS Ventura - Apple Support


macOS Ventura 13.4

macOS Ventura 13.4 includes the following enhancements and bug fixes:

  • Sports feed in the sidebar of Apple News gives easy access to stories, scores, standings, and more, for the teams and leagues you follow
  • My Sports score and schedule cards in Apple News take you directly to game pages where you can find additional details about specific games
  • Resolves an issue where Auto Unlock with Apple Watch does not log you into your Mac
  • Fixes a Bluetooth issue where keyboards connect slowly to Mac after restarting
  • Addresses a VoiceOver issue with navigating to landmarks on webpages
  • Fixes an issue where Screen Time settings may reset or not sync across all devices

Some features may not be available for all regions, or on all Apple devices.



Oct 4, 2023 8:32 PM in response to JE-Star

JE-Star,


As convoluted as the below list seems, please try ALL in this exact order:


  1. Force your iMac to use (and stay on) your router's 2.4 GHz Wifi (not 5 GHz).
  2. Turn off "Watch Unlock" on Mac
  3. Turn off WiFi on iMac
  4. Shutdown iMac
  5. Shutdown Watch
  6. Unplug all USB and Thunderbolt devices. If your boot drive is an external thunderbolt, unplug for a minute and plug back in.
  7. Boot up Watch and iMac
  8. Unlock Watch
  9. Turn on WiFi on iMac
  10. Turn on "Watch Unlock" on iMac
  11. At this point there is a 50/50 chance that iMac Unlock with Watch will work. If not, it may take a 2nd reboot of iMac and it will almost always work.


If successful, you can try and do away with some steps but be prepared for some long stretches of trial and error.


I find that sometimes functionality will survive many reboots and sometimes fails after the very next reboot and requires the steps all over again.


Let me know how you make out. Post with any questions.


CG


EDIT: forgot to mention, Step 10 turn on "Watch Unlock" on iMac: If the first attempt at getting the pill indicator to stick should fail, move off of the "Login Password" menu and back on and try again.



Dec 1, 2023 9:48 AM in response to CG5050

The same one that JE-Star earlier in this thread, error 114 "Remote WiFi failure"


sharingd: [com.apple.sharing:AutoUnlock] Client ack'd did fail with error: Error Domain=SFAutoUnlockErrorDomain Code=114 "Remote WiFi failure" UserInfo={NSLocalizedDescription=Remote WiFi failure}


A quick check showed that my watch was on the same WiFi as my Mac, so I tried rebooting the watch. That fixed it. It had recently updated to the new WatchOS, guess it needed an extra reboot to get unlocking working again.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

unlock Mac with Apple Watch

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.