Skip to content

Can't start ShazamKit  #15138

@vadd98

Description

@vadd98

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

  1. Create a basic MAUI app
  2. 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()

Environment

Version information ``` Xamarin iOS & Mac 15.10.0.1 iOS version 15.0 ```

Build Logs

Example Project (If Possible)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixiOSIssues affecting iOS

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions