Skip to content

iOS: JsonSerializationException: Cannot deserialize readonly or fixed size dictionary: System.Collections.Generic.IReadOnlyDictionary #147

@Zorrendor

Description

@Zorrendor
ExceptioniOS

Having exception with serialization metadata on iOS, works in Unity Editor and Android.

Unity 2022.3.14f
Managed stripping level: Minimal

I believe the issue is with stripping backend which is il2cpp for iOS and Mono for Android. Somehow, on iOS doesn't support serialization of:

        [Preserve]
        [JsonProperty("metadata")]
        public IReadOnlyDictionary<string, string> Metadata { get; }

Tried to pass null, empty Dictionary, both didn't work

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions