Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't disable iCloud keychain on Yosemite

I'm running Yosemite on my MacBook Pro. I recently noticed that iCloud Keychain turned itself on although I don't want it on, so I tried to turn it off in the iCloud control panel, but the check box for the Keychain won't unselect. I then try to sign out of iCloud itself and get the message:


"Your iCloud account couldn't be removed at this time. Turn off all iCloud services and try again."


I'm able to turn off all the services except Keychain. :-(


Console shows error messages like the following:


2015-02-26 1:46:34.539 AM com.apple.preferences.icloud.remoteservice[328]: SOSCCThisDeviceIsInCircle SOSCCThisDeviceIsInCircle!! 55

2015-02-26 1:46:34.540 AM com.apple.preferences.icloud.remoteservice[328]: SOSCCThisDeviceIsInCircle SOSCCThisDeviceIsInCircle!! 56

2015-02-26 1:46:34.541 AM com.apple.preferences.icloud.remoteservice[328]: [AOSAccounts] : [___ZN22ServiceProviderManager6LogoutEPK10__CFStringPK14__CFDictionaryb_block_i nvoke] :Service provider com.apple.Dataclass.KeychainSync disallows logout

2015-02-26 1:46:34.596 AM com.apple.preferences.icloud.remoteservice[328]: [AOSAccounts] : Failed to log out iCloud account - 1 sending kMMAccountLogoutFailedNotification with info (null)


Can anyone please help with this? Thanks in advance.

MacBook Pro (Retina, 15-inch, Late 2013), OS X Yosemite (10.10.2)

Posted on Feb 25, 2015 10:52 PM

Reply
Question marked as Best reply

Posted on Sep 2, 2017 12:56 PM

>SOLUTION: Close all programs and system preferences. At the top where the tool bar is on your desktop, select go and you will see a dialog box pop out with options to choose from but there is another one that is hidden called "library". While the pop up menu is present, hold down the "option" key on your keyboard and you will then see the hidden "library" option in the "go" drop down box. Select it while still pressing down the "option" key on the keyboard. A new dialog box will appear with folders in it from this library. Scroll down until you see "keychains". There will be a folder, and a single file; select the folder and drag it to the garbage can so it can later be deleted. Do not select and delete the other item which is the single file (looks like a blank page with the corner folded over) Note, it will not let you delete it now, and a pop up will tell you this. So you will have to shut down your computer by forcing it. Do this by holding down the power button on the keyboard until the computer shuts down and it will take a few moments for this to happen. Start your computer back up now, and now you will be able to empty the garbage can. Then go to system preferences, and then select iCloud there. You will now see a pop up asking you if you want to set up an iCloud account.<


This is the solution that actually worked for me. None of the others did.

33 replies
Question marked as Best reply

Sep 2, 2017 12:56 PM in response to skateboardkid

>SOLUTION: Close all programs and system preferences. At the top where the tool bar is on your desktop, select go and you will see a dialog box pop out with options to choose from but there is another one that is hidden called "library". While the pop up menu is present, hold down the "option" key on your keyboard and you will then see the hidden "library" option in the "go" drop down box. Select it while still pressing down the "option" key on the keyboard. A new dialog box will appear with folders in it from this library. Scroll down until you see "keychains". There will be a folder, and a single file; select the folder and drag it to the garbage can so it can later be deleted. Do not select and delete the other item which is the single file (looks like a blank page with the corner folded over) Note, it will not let you delete it now, and a pop up will tell you this. So you will have to shut down your computer by forcing it. Do this by holding down the power button on the keyboard until the computer shuts down and it will take a few moments for this to happen. Start your computer back up now, and now you will be able to empty the garbage can. Then go to system preferences, and then select iCloud there. You will now see a pop up asking you if you want to set up an iCloud account.<


This is the solution that actually worked for me. None of the others did.

Mar 3, 2015 7:45 PM in response to slrdc

I'm having a similar problem, also on 10.10.2. When I try to unselect "Keychain" in the iCloud preferences pane, I get a drop-down window that prompts me to choose between "Delete [passwords] from Mac", "Cancel", or "Keep on This Mac", but no matter which option I select, the "Keychain" box just gets rechecked right away. I don't need iCloud Keychain (or any of the other "continuity"/sync/spyware features) because I only have one device. So how do I turn it off?

Mar 10, 2015 6:24 PM in response to slrdc

Similar issue. Although when I try to uncheck the keychain preference in the iCloud pane it doesn't give me options to delete or cancel. It just re-checks the box immediately after unchecking it and generates the same four logs in Console with different numbers at the end that increase in sequential order each time I uncheck the option.


Logs:

3/10/15 8:19:40.871 PM com.apple.preferences.icloud.remoteservice[390]: SOSCCThisDeviceIsInCircle SOSCCThisDeviceIsInCircle!! 30

3/10/15 8:19:40.885 PM com.apple.preferences.icloud.remoteservice[390]: SOSCCThisDeviceIsInCircle SOSCCThisDeviceIsInCircle!! 31

3/10/15 8:19:40.885 PM com.apple.preferences.icloud.remoteservice[390]: SOSCCThisDeviceIsInCircle SOSCCThisDeviceIsInCircle!! 32

3/10/15 8:19:40.886 PM com.apple.preferences.icloud.remoteservice[390]: SOSCCThisDeviceIsInCircle SOSCCThisDeviceIsInCircle!! 33


MID 2009, MBP 17" 2.8GHz Core 2 Duo | OSX 10.10.2

Mar 12, 2015 9:20 AM in response to slrdc

I deleted the following files and restarted the Mac. This reset the iCloud preference was reset to its default state (not signed in to anything).

  • ~/Library/Preferences/com.apple.icloud.fmfd.plist
  • ~/Library/Preferences/com.apple.ids.service.com.apple.private.alloy.icloudpairin g.plist
  • ~/Library/Preferences/MobileMeAccounts.plist

You may also want to look in Keychain Access if you want to delete previously entered iCloud info/passwords.

Edit: I clicked on "@ Internet Accounts" and the iCloud account came back. Still cannot uncheck the Keychain box.

Mar 12, 2015 9:50 AM in response to asquare2

Update: I deleted about 20 preference files and any items in Keychain Access which contained my Apple Id (use the search box).

~/Library/IdentityServices

~/Library/SyncedPreferences

grep -r 'your.apple.id' ~/Library/Preferences

(delete anything that looks to be Apple related)


I then restarted, went to Internet Accounts and was finally able to delete the iCloud item. Yeay!

Mar 12, 2015 10:28 AM in response to asquare2

Here is the full of files I deleted from ~/Library. This is a bit of a hatchet job and may screw up any other internet accounts your are signed into. In my case I just wanted all personal iCloud info off my work Mac. (Sorry, I cannot edit my previous post for some reason).


~/Library/Preferences:

MobileMeAccounts.plist

com.apple.accountsd.plist

com.apple.bird.plist

com.apple.bookstoreagent.plist

com.apple.commerce.knownclients.plist

com.apple.commerce.plist

com.apple.coreservices.appleidauthenticationinfo.REDACTED-REDACTED-REDACTED.plis t

com.apple.facetime.bag.plist

com.apple.iChat.Jabber.REDACTED-REDACTED-REDACTED.plist

com.apple.iChat.SubNet.REDACTED-REDACTED-REDACTED.plist

com.apple.iTunes.plist

com.apple.icloud.fmfd.plist

com.apple.ids.service.com.apple.ess.plist

com.apple.ids.service.com.apple.madrid.plist

com.apple.ids.service.com.apple.private.ac.plist

com.apple.ids.service.com.apple.private.alloy.callhistorysync.plist

com.apple.ids.service.com.apple.private.alloy.continuity.activity.plist

com.apple.ids.service.com.apple.private.alloy.continuity.activity.public.plist

com.apple.ids.service.com.apple.private.alloy.continuity.auth.plist

com.apple.ids.service.com.apple.private.alloy.continuity.encryption.plist

com.apple.ids.service.com.apple.private.alloy.continuity.tethering.plist

com.apple.ids.service.com.apple.private.alloy.icloudpairing.plist

com.apple.ids.service.com.apple.private.alloy.idsremoteurlconnection.plist

com.apple.ids.service.com.apple.private.alloy.maps.plist

com.apple.ids.service.com.apple.private.alloy.multiplex1.plist

com.apple.ids.service.com.apple.private.alloy.phonecontinuity.plist

com.apple.ids.service.com.apple.private.alloy.screensharing.plist

com.apple.ids.service.com.apple.private.alloy.sms.plist

com.apple.imservice.SMS.REDACTED-REDACTED-REDACTED.plist

com.apple.imservice.ids.FaceTime.REDACTED-REDACTED-REDACTED.plist

com.apple.imservice.ids.iMessage.REDACTED-REDACTED-REDACTED.plist

com.apple.keychainaccess.plist

com.apple.xpc.activity2.plist

icbaccountsd.plist


~/Library/IdentityServices:

ids.db

ids.db-shm

ids.db-wal


~/Library/SyncedPreferences:

com.apple.Maps-com.apple.MapsSupport.bookmarks.plist

com.apple.Maps-com.apple.MapsSupport.history.plist

com.apple.Safari-com.apple.Safari.UserRequests.plist

com.apple.Safari.plist

com.apple.SafariServices.plist

com.apple.cmfsyncagent.plist

com.apple.finder.plist

com.apple.sbd.plist

com.apple.security.cloudkeychainproxy3.plist

com.apple.syncedpreferences.plist

Mar 12, 2015 10:57 PM in response to slrdc

Same issue in logs [kMMAccountLogoutFailedNotification with info (null)] with everything disabled from preferences panel except keychain.


Closed any running apps that might be accessing the keychain

Removed ~/Library/Application Support/iCloud/Accounts/*


Removed com.apple.security.KCN.plist & com.apple.security.cloudkeychainproxy3.keysToRegister from ~/Library/Preferences/


Restarted, accepted login to iCloud prompt, went into iCloud preferences.

Was then able to un-tick and sign out completely.

Mar 15, 2015 10:25 AM in response to ModeConfusion

ModeConfusion wrote:


Same issue in logs [kMMAccountLogoutFailedNotification with info (null)] with everything disabled from preferences panel except keychain.


Closed any running apps that might be accessing the keychain

Removed ~/Library/Application Support/iCloud/Accounts/*


Removed com.apple.security.KCN.plist & com.apple.security.cloudkeychainproxy3.keysToRegister from ~/Library/Preferences/


Restarted, accepted login to iCloud prompt, went into iCloud preferences.

Was then able to un-tick and sign out completely.


Thank you, this procedure worked for me and seems to have left everything else intact.

Mar 19, 2015 2:23 PM in response to fpDoug

It temporarily worked and somehow the keychain turned itself back on again. This is what I have in my Console:


SOSCCThisDeviceIsInCircle SOSCCThisDeviceIsInCircle!! 7


SOSCCThisDeviceIsInCircle SOSCCThisDeviceIsInCircle!! 8


[AOSUI] : __48-[MMKeychainService _handleSecureBackupInvalid:]_block_invoke called but secure backup is still valid: TR: N RI: N


*** -[NSLock unlock]: lock (<NSLock: 0x6000002c32c0> '(null)') unlocked from thread which did not lock it


*** Break on _NSLockError() to debug.

Apr 7, 2015 2:14 AM in response to tf245yay

OMG I'm about to throw out my MBP. I turned on iCloud Keychain and it has completely screwed up my systems. Not only can I not turn it off, even if I reset it on my phone it keeps coming back as soon as I launch Mail. I removed my Mail Accounts, yet all these old accounts pop back up after I reboot. How the heck do you completely delete the iCloud keychain and all related files? Where is it?

Apr 8, 2015 4:32 PM in response to cmp101

Been having trouble with this and came across this thread. I tried deleting a bunch of aforementioned files, particularly:

~/Library/Application Support/iCloud

~/Library/Preferences/com.apple.icloud.fmfd.plist

~/Library/Preferences/com.apple.ids.service.* (theres a bunch)

~/Library/Preferences/com.apple.security.* (theres a few...not sure if this broke anything yet)


Then restarted, and the keychain stayed alive and I couldn't sign out. What finally did it was deleting:

~/Library/Keychains/[seemingly random alphanumeric folder] which had accountStatus.plist and some stuff like keychain.db and other files


Deleting that folder then restarting finally got OS X to say the local keychain was reset and I was able to sign out of iCloud. Not sure if the rest is necessary but deleting that folder seemed to be the key for me, presumably that's the local version of the iCloud keychain that shows up in Keychain Access.

Apr 15, 2015 11:10 AM in response to fpDoug

fpDoug wrote:


ModeConfusion wrote:


Same issue in logs [kMMAccountLogoutFailedNotification with info (null)] with everything disabled from preferences panel except keychain.


Closed any running apps that might be accessing the keychain

Removed ~/Library/Application Support/iCloud/Accounts/*


Removed com.apple.security.KCN.plist & com.apple.security.cloudkeychainproxy3.keysToRegister from ~/Library/Preferences/


Restarted, accepted login to iCloud prompt, went into iCloud preferences.

Was then able to un-tick and sign out completely.


Thank you, this procedure worked for me and seems to have left everything else intact.


To share another successful data point: I tried what's described above, and it didn't work for me. I then signed out of iCloud Keychain on my iPhone (per http://apple.stackexchange.com/questions/179062/unable-to-sign-out-of-icloud-on- osx-yosemite-or-disable-keychain) and the Mac's checkbox turned off. I'm rebooting now to see if it sticks.

Can't disable iCloud keychain on Yosemite

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