When build I got error: Plugin 'System.Runtime.CompilerServices.Unsafe.dll' is used from several locations
I already have System.Runtime.CompilerServices.Unsafe in project. I added UIMGUI_REMOVE_UNSAFE_DLL in Project Settings > Player > Scripting Define Symbols and the error is gone. But when I build, the error appears again.
Plugin 'System.Runtime.CompilerServices.Unsafe.dll' is used from several locations:
Assets/Plugins/System.Runtime.CompilerServices.Unsafe.dll would be copied to <PluginPath>/x86_64/System.Runtime.CompilerServices.Unsafe.dll
Packages/com.psydack.uimgui/Plugins/System.Runtime.CompilerServices.Unsafe.dll would be copied to <PluginPath>/x86_64/System.Runtime.CompilerServices.Unsafe.dll
Please fix plugin settings and try again.
Do you know how to fix this?
Unity 2021.1.25f1
I don't know why it's happening. Because it seems to be an Unity's problem you could delete Unsafe.dll from plugins folder into uimgui folder's package. uimgui/Plugins/System.Runtime.CompilerServices.Unsafe.dll
https://issuetracker.unity3d.com/issues/ios-plugin-is-used-from-several-locations-error-when-building-a-project-with-included-xcframeworks
Thanks for the info. It says 'Fixed in 2021.2.0a1.279' so I tried to find a newer one. I only saw 2021.2.0b16 in Hub so I installed that. For some reason I cannot open my project in this version. Will try deleting one Unsafe.dll later.