Using Unity 2019.3.15f1 on MacOS Catalina v10.15.5, I'm using a few plugins in my project to support certain features. The plugins are UniWebView (for showing web views) and NatCorder (to record video & audio during gameplay).
Before the latest MacOS update, everything worked as expected. Without changes to Unity or my project, however, I now get the error '“UniWebView.bundle” is damaged and can’t be opened. You should move it to the Bin' whenever a method of the plugin is called. The editor pauses because of the error, but I can continue playing. While playing continues, none of the features of the plugins work, instead throwing the same error again.
The same occurs for the NatCorder.bundle, and it occurs in other projects using the NatCorder plugin as well. So it doesn't seem to be a problem unique to a specific bundle or project.
This only occurs during testing within the editor. In an Android build, everything works as expected, likely because compilation of the plugin makes it part of the build internally.
To solve it, I've tried to:
- Reinstall Unity
- Redownload and install the plugins
- Complete reimport of all project assets
But nothing works. I'm stumped. Some research suggested it's a problem with MacOS GateKeeper no longer allowing files of unidentified developers to be opened, as the option to 'Allow from anywhere' has been removed from the settings. I don't know when this happened, but I worry it might have been in the latest MacOS update. Manually opening the UniWebView.bundle contents and trying to open a file did throw an unidentified developer warning.
I've tried to use the command 'sudo spctl --master-disable' in terminal to reenable the 'Allow from anywhere' option. That works, the option reappears and seems selected. It does not solve my problem, however, and upon a reboot of the macbook, the setting vanishes once more.
So... I'm out of leads, and nothing's changed. If anyone knows a lead to follow up on, please share. I suspect something changed in the MacOS update that prevents me from using the files in the Unity editor application, but I'm rather new to MacOS and don't know what it could be.