Unity deletes files from my asset folder on Mac OS

I’ve got a problem with Unity installed on Mac OS (Unity 2020.1.16f1 Personal and Mac OS Catalina 10.15.6)

It’s look like Unity delete files by itself from my asset folder. It occurs with both a Firebase (Firebase SDK 7.0.2) and PNG file.

The deletion seems to occur something like each hour (more or less)

However the problem don’t happen with all my assets, for exemple with the Firebase SDK it seems that only the file FirebaseCppApp-7_0_2.bundle (and with my png file it happens only with a specific file).

Here’s how I get the problem (exemple with Firebase SDK):

  • I import Firebase SDK I need into Unity (Import Package → Custom Package and then choose the one I need)
  • Got this error: “DllNotFoundException: FirebaseCppApp-7_0_2”
  • Correct this error by going to Security And Confidentiality of my Mac and authorize Firebase to be open (when you download something from internet directly sometimes your Mac ask for this authorization because he don’t recognize the developer)
  • Work perfectly for approximately 1 hour (I can make all changes I want, test my game with the game mode etc …)
  • After 1 hour get the error of 2) again (on game mode)
  • I can fix the problem by reimport only one file from the SDK (FirebaseCppApp-7_0_2.bundle locate in Assets/Firebase/Plugins/x86_64/)
  • The first time I click play in Game Mode Unity crashes
  • Go to 3) step and continue

Is someone already get this error ? I’ve found multiple thread on internet talking about similar bugs (but not exactly the same) but nothing worked for me …

How do you know it’s Unity deleting the files? When I’ve seen posts like this before, often it turns out to be some external program, like Dropbox, or something synchronizing files on your file system. I’d check whether the file gets deleted from that location if you keep Unity closed for several hours. I’d also check whether you have other file sync software running, and see if that’s removing it.

Effectively, maybe it’s not Unity, I asssumed it was Unity because I didn’t get that problem before, but in fact I have my file synchronized on iCloud so I will check if I found something on that. Thank you I didn’t thought about that.