-
Notifications
You must be signed in to change notification settings - Fork 547
Description
Hi, I'm trying to implement ShazamKit in a MAUI app, by the way I'm always getting an exception when I try to instantiate a SHSession.
I'm using the simulator because at the moment I don't have any physical iPhone to test, by the way a tried a native ShazamKit demo project found on Github on the simulator and it works fine.
Steps to Reproduce
- Create a basic MAUI app
- Try to instantiate a native SHSession of the iOS platform
Expected Behavior
Instantiate a SHSession
Actual Behavior
Can't instantiate a SHSession.
This is the exception I'm getting:
Could not create an native instance of the type 'ShazamKit.SHSession': the native class hasn't been loaded.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
at Foundation.NSObject.InitializeObject(Boolean alloced)
at Foundation.NSObject..ctor(NSObjectFlag x)
at ShazamKit.SHSession..ctor()
at Compilero.Mobile.Platforms.iOS.Services.IOsShazamKitService..ctor()