I am trying to recreate the application shown in the "Explore ShazamKit" WWDC session using code samples from the ShazamKit code-along session, and I've got everything done in the preparation part before session.match(signature)
is called.
For some reason, the following function in the delegate:
func session(_ session: SHSession,
didNotFindMatchFor signature: SHSignature,
error: Error?) {
DispatchQueue.main.async {
print("match error: \(String(describing: error))")
}
}
always prints:
match error: Optional(Error Domain=com.apple.ShazamKit Code=202 "Please check that you have enabled the ShazamKit App Service for this app identifier" UserInfo={NSDebugDescription=Please check that you have enabled the ShazamKit App Service for this app identifier})
What can I do to fix that?
The complete code for the app is available on my GitHub.
Edit: just wanted to add that I'm using Xcode 13.0 Beta 1, on macOS Big Sur 11.4