If you’re having issues with your macOS‘s OneDrive installation you might want to try the following fix.
I have been using this in order to keep the Files On-Demand feature that has been available for some time now in a specific preview build. I can’t say though, if there has been any kind of update to this build Microsoft is making available (download here).
The Files On-Demand feature works well enough on this build and it’s so useful that I’ve been using despite the issues it has.
The main issue I’ve been struggling with is that OneDrive will stop working after some days – it will just crash without any warning soon after the app loads. As this is a silent crash, you won’t even be aware that your files are not being synced at all!
Fixing this is relatively easy. Considering that OneDrive is not loading or if it is constantly crashing, you might want to follow the steps below. This will reset all KeyChain entries (including the login), and some other settings, so you’ll basically have to login again and wait for OneDrive to check all your local files against the online stored versions.
Here we go:
- Close OneDrive using the app (if open), by pressing the cloud icon and selecting Settings > Quit.
- Open Activity Monitor and kill any OneDrive related task you find (there might be some OneDrive Finder Integration entries there as well).
- Open Finder, navigate to Applications > OneDrive.app, right-click it and select Show Package Contents.
- Navigate to Contents > Resources
- Find “ResetOneDriveApp.command” or “ResetOneDriveAppStandalone.command” and double-click it.
- After that a Console script should run on its own and you can close it when completed.
- Open OneDrive again and login.
Note that if you are using Files On-Demand and experiencing similar issues to mine, the procedure above will also reset your default selection for files and folders you have manually excluded from your synchronization selection (i.e. “Free up space”).
Essentially, you’ll have to choose whichever ones you want or leave it to OneDrive to manage it.
For More on OneDrive for Mac troubleshooting