I’m not quite sure how this happened. And I’ll preface the report by saying that while I think most people would have suffered serious data loss (files just disappeared), and I almost did, I got lucky and was able to rescue all my missing Bike files from a second Mac that, luckily hadn’t finished an iCloud sync that I think would have lost the files there too.
Basically, I somehow wound up with two “Bike” folders in my iCloud Drive. Most of my Bike documents were in one that was somehow hidden in the Finder. After a restart, which I thought might rectify the syncing confusion on iCloud’s part, that folder was simply gone. To be clear, I suspect this was an iCloud bug/glitch, not Bike’s, but it was Bike’s files I nearly lost.
I first noticed something was wrong when I started getting alert sheets in Bike for my open documents, telling me they were missing or something, and that I had the option of either keeping them or closing them, and that if I closed them I’d lose them. I wish to hell I’d taken a screenshot of this but I didn’t. Sorry. I of course clicked the “Keep” button for each of them.
I foolishly chalked this up to a one-time iCloud glitch. But it happened again. That’s when I restarted the Mac (running MacOS 15.2) and when it finished restarting and I logged back in, those files were gone, and they weren’t listed in Bike’s File → Open Recent menu. Not in the Trash, not in Recently Deleted when I looked at iCloud.com. Just gone.
I’m lucky to have more than one Mac. On this second Mac, I took great care. It turns out I have two Bike folders in iCloud drive. Only one of them is visible in the Finder, and that one also shows the magic Bike icon on the folder icon. Alas, that folder only has some of my Bike files.
However, when I launched Bike on this second Mac, all my other files (which I’d left open in Bike) were reopened. I used the Cmd-click trick on the document proxy icon to open the folder containing the file. At first I was confused, because this opened a second Bike folder window in the Finder. Both of them looked, in the Finder, like they were at iCloud Drive > Bike
. But the two folders held entirely different Bike files. And the one with my more important, currently open files was the one that didn’t have the magic Bike icon on the folder icon.
Dropping into Terminal revealed the descrepancy. The working folder, with the magic icon, visible in the Finder, had the path:
/Users/gruber/Library/Mobile Documents/iCloud~com~hogbaysoftware~Bike/Documents
The other Bike folder, the one that I couldn’t see at the root level of iCloud Drive in the Finder, which didn’t have the badged folder icon, but which contained most of my Bike files, had the path:
/Users/gruber/Library/Mobile Documents/iCloud~hogbaysoftware~Bike/Documents
There’s a missing ~com
in the one that contained my missing files and which disappeared out from under me.
My best guess what happened here is that way back in very earliest days of Bike, I think I created a “Bike” folder at the root level of iCloud Drive, and by habit saved all my Bike documents there. But, trying to research this situation here in this forum’s history, I see in the notes for Bike 1.18.1 (173): "Added Bike specific iCloud drive folder”.
That was back in February though, so if this caused a conflict with my own hand-created “Bike” folder at the root of iCloud Drive, I don’t understand why I only ran into a conflict yesterday.
Also, my conflicted folder had a bunch of duplicates of my files, with numbers appended to their names. The sort of numbering you get when iCloud Drive sync runs into a conflict between files updated on different machines.
I’m all good, I think, in terms of now having found the missing files and copied them to safe place outside iCloud Drive. I think I only lost a few lines of text in one file. Disaster averted. But I’m damn curious what happened!