gkngkc / UnityStandaloneFileBrowser

A native file browser for unity standalone platforms
MIT License
2.01k stars 317 forks source link

DLL not found on mac #104

Closed TheNaotagrey closed 2 years ago

TheNaotagrey commented 3 years ago

One of my mac user reports the following errors when clicking on buttons which call the package.

DllNotFoundException: StandaloneFileBrowser
  at (wrapper managed-to-native) SFB.StandaloneFileBrowserMac.DialogSaveFilePanel(string,string,string,string)
  at SFB.StandaloneFileBrowserMac.SaveFilePanel (System.String title, System.String directory, System.String defaultName, SFB.ExtensionFilter[] extensions) [0x0000a] in <b010f06cb1ea4067aaae78dd54267f48>:0 
  at SFB.StandaloneFileBrowser.SaveFilePanel (System.String title, System.String directory, System.String defaultName, SFB.ExtensionFilter[] extensions) [0x00000] in <b010f06cb1ea4067aaae78dd54267f48>:0 
... my code

Never got the issue on Windows (not Linux users so far) Is this an error on my part ?

marakortenkamp commented 3 years ago

I just came across the same error and was able to solve it:

In the project go to Assets/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.bundle and then choose "Load on startup" in the Plugin load settings and click apply.

Bildschirmfoto 2021-06-04 um 10 26 06

Hope it helps!

Mylab6 commented 2 years ago

I"m seeing the same issue, but the fix isn't working for me, would be a shame to have to switch to a different plugin , but I've been unable to get this to work for hours.

I have a mac I'm testing on locally.

TheNaotagrey commented 2 years ago

The fix worked for me!

kelsngvz7 commented 2 years ago

I"m seeing the same issue, but the fix isn't working for me, would be a shame to have to switch to a different plugin , but I've been unable to get this to work for hours.

I have a mac I'm testing on locally.

It works for me after restart Unity