How to fix broken iCloud sidebar alias after Sierra Migration

Was posting a question when fixed myself, so here it is to help you guys.


Problem:

I had a MacBook Air with Sierra, Documents and Desktop on my iCloud. I had two folders (call them 'folder1' and 'folder2') from iCloud in my sidebar favorites that I created by dragging the folders to the sidebar. Easy and they worked fine.


I bought a new MacBook Pro with Sierra and did the Migration Assistant to move my user and preferences. Everything worked fine, including iCloud, except the two favorites for 'folder1' and 'folder2' were broken. When I clicked them, I got an error that said the destination no longer existed. I could not delete them by

1. right click,

2. nor by command+click and dragging them off the sidebar,

3. nor by deleting ~/Library/Preferences/com.apple.sidebarlists.plist,

4. nor by deleting ~/Library/Preferences/com.apple.finder.plist.

The broken favorites/aliases remained non-functional and in the sidebar.


Solution:

Move ~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.iCloudItems.sfl to your desktop or the Trash. Reboot. Add iCloud to the favorites again through Finder > Preferences > Sidebar > check iCloud. Drag new favorites to sidebar from iCloud.


Discussion:

It looks like Sierra stores iCloud favorites/aliases in a different file than com.apple.sidebarlists.plist. The file is


~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.iCloudItems.sfl


You can rename the extension to .plist and open it with Xcode to see that it's a plist. Inside mine, my broken favorites/aliases pointed to a folder location that OS X El Capitan stored iCloud documents before Sierra. Specifically,


file:///Users/Name/Library/Mobile%20Documents/com~apple~CloudDocs/folder1/

file:///Users/Name/Library/Mobile%20Documents/com~apple~CloudDocs/folder2/


However, with Sierra, the new folder locations are more natural,


file:///Users/Name/Documents/folder1

file:///Users/Name/Documents/folder2


and those old folders no longer exist. That's why the aliases were broken.


If anyone with more in-depth knowledge of Sierra could comment if removing this file is dangerous, please do so. My computer and iCloud have been working fine since I did it, but you never know.

MacBook Pro (13-inch, Late 2016, 4 TBT3), macOS Sierra (10.12.1), null

Posted on Dec 2, 2016 12:08 PM

Reply
3 replies

Dec 5, 2016 9:51 AM in response to ScienceNerdUS

Many thanks for your suggestions. I did not proceed with iCloud integration of my Desktop and Documents folders when upgrading to macOS 10.12 Sierra. While I readily navigated to the ~/Library/Application Support/com.apple.sharedfilelist, I do not have the specified file ending in "iCLouditems.sfi". I have a ~/com.apple.LSSharedFileList.ApplicationRecentDocuments folder populated with multiple *.sfi files none of which match.

I readily admit that I may be missing something.

Thank you again.

Dec 5, 2016 7:10 PM in response to Community User

You're trying to fix broken aliases, right? Do you have the name of one of them? For example, in my problem above, one of mine was for 'folder1'. I'm thinking that you might be able to do a search in terminal that will look inside of files for your 'folder1'. That might help you find a preferences file (either .plist of .sfi) that contains your broken aliases.


You can do a search with the following command:


grep -r 'folder1' ~/Library/Preferences


where 'folder1' is the name of your broken link. You can also try searching in just ~/Library or possibly even /Library/Preferences

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.

How to fix broken iCloud sidebar alias after Sierra Migration

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