Building Library\Bee\artifacts\WebGL\GameAssembly\release_WebGL_wasm\8hlh_.ICP.Agent.o failed with output:
C:\Git\icp.net_demo\ICP_demo_unity\Library\Bee\artifacts\WebGL\il2cppOutput\cpp\EdjCase.ICP.Agent.cpp:10541:3: error: no matching function for call to 'CborReader__ctor_m5191B60B1242ACF099DE8349ED037D0A17E36DD4'
CborReader__ctor_m5191B60B1242ACF099DE8349ED037D0A17E36DD4(L_15, L_14, 1, (bool)0, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Git\icp.net_demo\ICP_demo_unity\Library\Bee\artifacts\WebGL\il2cppOutput\cpp\EdjCase.ICP.Agent.cpp:3562:41: note: candidate function not viable: no known conversion from 'ReadOnlyMemory_1_t63F301BF893B0AB689953D86A641168CA66D2399' to 'ReadOnlyMemory_1_t43203E8B19A7F4A97A9A49363F67C206E8B058FE' for 2nd argument
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CborReader__ctor_m5191B60B1242ACF099DE8349ED037D0A17E36DD4 (CborReader_tD16D04772AB3E74EA1866DBEC07FFFD66AC95CE5* __this, ReadOnlyMemory_1_t43203E8B19A7F4A97A9A49363F67C206E8B058FE ___0_data, int32_t ___1_conformanceMode, bool ___2_allowMultipleRootLevelValues, const RuntimeMethod* method) ;
Where the method signature is (ReadOnlyMemory<byte> data, CborConformanceMode conformanceMode = CborConformanceMode.Strict, bool allowMultipleRootLevelValues = false)
There are a few other dead forum posts that have similar issues:
Any thoughts on how to resolve this or and potential fixes that can happen.
Does your ICP.NET project include its own implementation of System.Memory.dll (maybe to support .NET Standard 2.0)? If so, Unity developers need to remove that, since Unity 2021 and later supports these types in its base class library implementation.
The error message here suggests to me that there are duplicates of those types, which often happens when a System.Memory.dll is included in the project.
I tried that with no luck. It has the same issue.
From what I understand this a compile time conversion issue between IL and CPP using IL2CPP. It doesnt seem to like readonly structs or something
Just now I’ve done a test and I’ve replaced the ReadOnlySpan method parameters to TPixel[ ] and it worked. Anytime I’ll hit over a Span<> or ReadOnlySpan<> method parameter I’m having “null function or function signature mismatch”. So I think we can add this note to your investigation.