apphud / ApphudSDK-Unity

Apphud Unity SDK
MIT License
2 stars 1 forks source link

Doesn't work in Editor mode #5

Closed shamruk closed 3 months ago

shamruk commented 4 months ago

Start throws the following error when running from the editor (not on actual device). It would be great if it would work in editor mode to debug the integration much faster. But at least it should not throw errors.

System.TypeInitializationException: The type initializer for 'Apphud.Unity.SDK.ApphudSDK' threw an exception. ---> System.EntryPointNotFoundException: ApphudUnity_registerCallbackHandler assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) 
Apphud.Unity.IOS.Common.IOSCallbackAction.RegisterCallbackDelegate(Apphud.Unity.IOS.Common.IOSCallbackAction/CallbackBoolDelegate,Apphud.Unity.IOS.Common.IOSCallbackAction/CallbackDelegate,Apphud.Unity.IOS.Common.IOSCallbackAction/Callback2Delegate,Apphud.Unity.IOS.Common.IOSCallbackAction/Callback3Delegate)
  at Apphud.Unity.IOS.Common.IOSCallbackAction.InitializeOnce () [0x00026] in ./Library/PackageCache/com.apphud.unity.sdk@8544ed2620/Runtime/SDK/IOS/Common/IOSCallbackAction.cs:79 
  at Apphud.Unity.IOS.SDK.ApphudIOSSDK..ctor () [0x00008] in ./Library/PackageCache/com.apphud.unity.sdk@8544ed2620/Runtime/SDK/IOS/SDK/ApphudIOSSDK.cs:21 
  at Apphud.Unity.SDK.ApphudSDK..cctor () [0x00000] in ./Library/PackageCache/com.apphud.unity.sdk@8544ed2620/Runtime/SDK/SDK/ApphudSDK.cs:19 
   --- End of inner exception stack trace ---
  at S.App.Managers.ApphudManager..ctor (S.App.Managers.IApphudConfig config, S.App.Managers.IApphudPaywallsReceiver paywallsReceiver, S.App.Managers.IFacebookManager facebookManager, S.App.Managers.AppsFlyerManager appsFlyerManager, S.App.Managers.AdjustManager adjustManager) [0x00017] in /Users/sms/Projects/MusicApp/MA/Assets/Scripts/S/App/Managers/ApphudManager.cs:40 
shamruk commented 3 months ago

Looks like it is fixed in feature branch v1.1. Thanks!

VrezhAleksDev commented 3 months ago

Yes it.s fixed in v1.1, thanks for your request