-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Is Reown AppKit Unity actually working on iOS for anyone using Unity 6000.0.58f2 or other latest Unity 6 versions?
On iOS (device) AppKit initialization fails. Here are logs :
[WalletManager] Calling AppKit.InitializeAsync... [WalletManager] InitializeAppKit error: System.NullReferenceException: Object reference not set to an instance of an object. at Newtonsoft.Json.Serialization.DefaultContractResolver.GetCallbackMethodsForType (System.Type type, System.Collections.Generic.List1[Newtonsoft.Json.Serialization.SerializationCallback]& onSerializing, System.Collections.Generic.List1[Newtonsoft.Json.Serialization.SerializationCallback]& onSerialized, System.Collections.Generic.List1[Newtonsoft.Json.Serialization.SerializationCallback]& onDeserializing, System.Collections.Generic.List1[Newtonsoft.Json.Serialization.SerializationCallback]& onDeserialized, System.Collections.Generic.List1[Newtonsoft.Json.Serialization.SerializationErrorCallback]& onError) [0x00000] in <00000000000000000000000000000000>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveCallbackMethods (Newtonsoft.Json.Serialization.JsonContract contract, System.Type t) [0x00000] in <00000000000000000000000000000000>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract (Newtonsoft.Json.Serialization.JsonContract contract) [0x00000] in <00000000000000000000000000000000>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateDictionaryContract (System.Type objectType) [0x00000] in <00000000000000000000000000000000>:0 at System.Collections.Concurrent.ConcurrentDictionary2[TKey,TValue].GetOrAdd (TKey key, System.Func2[T,TResult] valueFactory) [0x00000] in <00000000000000000000000000000000>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <00000000000000000000000000000000>:0 at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <00000000000000000000000000000000>:0 at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00000] in <00000000000000000000000000000000>:0 at Reown.Core.Storage.FileSystemStorage.Save () [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 at Reown.Core.Storage.FileSystemStorage.Save () [0x00000] in <00000000000000000000000000000000>:0 at Reown.Core.Storage.FileSystemStorage.SetItem[T] (System.String key, T value) [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in
I am using Unity Version: 6000.0.58f2
Reown AppKit Unity: Tried v1.5.0, v1.5.1 and v1.5.2
Android (IL2CPP) works 100% perfectly with the exact same project, code and settings.
What I have already tried :
- Official package com.reown.appkit.unity versions 1.5.0, 1.5.1, 1.5.2
- Full nuclear clean (deleted Library/, Temp/, obj/, PackageCache/, packages-lock.json) multiple times
- Player Settings (iOS):
- Managed Stripping Level = Low
- IL2CPP Code Generation = Optimize for runtime speed
- Strip Engine Code = OFF
- Extremely comprehensive link.xml preserving Newtonsoft.Json (including specific methods), all Reown.*, System.Reflection, System.Collections.Concurrent, etc.
- Delayed Reown init with Task.Delay()
Any working configuration would be hugely appreciated!
Thank you!