macOS App Keeps Closing

MacBook Air 2020 M1 Chip, Nextcloud Files v3.16.5 - Note I’ve tried both the regular app and the “virtual files” version as well and it’s the same problem.

I’ve also tried uninstalling the app a few times, always making sure to delete ALL left over files before reinstalling (via App Cleaner and manual search). I’ve factory reset my MacBook and tried again, same problem. I’ve only seen one other forum post on here about this same issue, there was no fix.

The app will open for about 5-10 seconds before closing itself, FULLY closing itself, not just minimizing as the process will disappear from Activity Monitor. Even if I’m able to connect to my server fast enough, the app will close.

The last piece of the puzzle is the app seems to keep “installing” even though it’s clearly been fully installed. What I mean is that if I try restarting, sometimes it won’t allow me because “an app hasn’t finished installing” and it will show a progress bar of about 95% complete, and it’s Nextcloud. Then that will go away and I’m able to restart. This seems to be stuck forever because almost any time I try restarting, this happens.

You can start the Nextcloud client from command line, adding an option to log into a file:

/Applications/nextcloud.app/Contents/MacOS/nextcloud --logfile <file>

(Troubleshooting — Nextcloud latest Administration Manual latest documentation)

With that, you either get an error what is wrong, or at least what was done just before it crashed.