Hello,
I’ve compiled a project to the simulator using Unity 2022.3.11, Xcode 15.1 and polyspatial 0.4.3. When I run the build into the simulator, I get a crash in that line:
reinterpret_cast(GetPolySpatialNativeAPI)(____0_api_marshaled);
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RKRuntimeFuncs_GetPolySpatialNativeAPI_static_mCA2433F613CA9024ED9FD398154B1E40228DECCB (PolySpatialNativeAPI_tF855D128F93A12CA0DD9DC81AAD69043468D1A48* ___0_api, const RuntimeMethod* method)
{
typedef void (DEFAULT_CALL PInvokeFunc) (PolySpatialNativeAPI_tF855D128F93A12CA0DD9DC81AAD69043468D1A48_marshaled_pinvoke);
PolySpatialNativeAPI_tF855D128F93A12CA0DD9DC81AAD69043468D1A48_marshaled_pinvoke ____0_api_empty = {};
PolySpatialNativeAPI_tF855D128F93A12CA0DD9DC81AAD69043468D1A48_marshaled_pinvoke* ____0_api_marshaled = &____0_api_empty;
reinterpret_cast(GetPolySpatialNativeAPI)(____0_api_marshaled);
PolySpatialNativeAPI_tF855D128F93A12CA0DD9DC81AAD69043468D1A48 _____0_api_marshaled_unmarshaled_dereferenced;
memset((&_____0_api_marshaled_unmarshaled_dereferenced), 0, sizeof(_____0_api_marshaled_unmarshaled_dereferenced));
PolySpatialNativeAPI_tF855D128F93A12CA0DD9DC81AAD69043468D1A48_marshal_pinvoke_back(*____0_api_marshaled, _____0_api_marshaled_unmarshaled_dereferenced);
*___0_api = _____0_api_marshaled_unmarshaled_dereferenced;
Il2CppCodeGenWriteBarrier((void**)&((___0_api)->___SendClientCommand), (void*)NULL);
PolySpatialNativeAPI_tF855D128F93A12CA0DD9DC81AAD69043468D1A48_marshal_pinvoke_cleanup(*____0_api_marshaled);
}
Anyway to fix this? We’ve this issue with other projects too.