uimgui icon indicating copy to clipboard operation
uimgui copied to clipboard

When build I got error: Plugin 'System.Runtime.CompilerServices.Unsafe.dll' is used from several locations

Open Kotsuha opened this issue 4 years ago • 3 comments

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

Kotsuha avatar Oct 17 '21 12:10 Kotsuha

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

psydack avatar Oct 18 '21 14:10 psydack

https://issuetracker.unity3d.com/issues/ios-plugin-is-used-from-several-locations-error-when-building-a-project-with-included-xcframeworks

psydack avatar Oct 18 '21 14:10 psydack

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.

Kotsuha avatar Oct 19 '21 10:10 Kotsuha