Recompiled plugins not refreshing in Unity

Hi, I'm trying to create a set of plugins in XCode and test them using a simple Unity project.

My problem seems to be that when recompiling and copying the bundle into the Assets/Plugins folder Unity doesn't pick up the new versions and is caching them somewhere instead (when using the 'Game' mode). However, if I Build&Run OR restart Unity the correct / new versions are picked up and used in the created application which tells me they are being put in the correct place.

How do I refresh Unity to use the new versions of the plugins without restarting it completely?

Thanks,

Nathan

Try Reimporting your plugins/bundles.

Edit from your comment:

Then it's likely that once your bundle is loaded by the editor, it won't be unloaded until Unity is actually stopped.

On Windows, the DLL file would be locked for writing, stopping you from overwiting it. This happens to us here.

But on OSX, since it's a Unix-based system, executable files are fully loaded in memory while the actual file isn't locked. That's why you can overwrite your previous version of your bundle, and because the bundle file itself has changed, Unity picks up on that change and reimport the bundle ( -> activity spinner). Yet the bundle loaded in memory doesn't get unloaded/reloaded with the new version.

I don't think there's anything you can do on your side on this. I'd suggest filing a Bug Report demonstrating the issue to Unity, if not already done.