I am trying to develop a feature when in if a user asks Siri to play a medium content("Hey Siri, play song name in AppName") Siri launches the app and plays the media, so I found this article that basically supports this - https://developer.apple.com/documentation/sirikit/media/managing_audio_with_sirikit did all the 7 steps as mentioned but I keep encountering this error - Attempted to register account monitor for types client is not authorized to access: {( "com.apple.account.iTunesStore" )}
Code to create JWT Token -
struct JWT { var teamID = "MyTeamID" var keyID = "MyKeyID" var authToken = """ -----BEGIN PRIVATE KEY----- MY Private Key goes here -----END PRIVATE KEY-----
""" func generateToken() { let myHeader = Header(kid: keyID) let claims = JWTClaims(iss: teamID, iat: Date(), exp: Date() + 60 * 60 * 24 * 100) var jwt = SwiftJWT.JWT(header: myHeader, claims: claims) guard let tokenData = authToken.data(using: .utf8) else {return } do { let token = try jwt.sign(using: .es256(privateKey: tokenData)) UserDefaults.standard.setValue(token, forKey: "JWTToken") } catch { print(error.localizedDescription) } } } struct JWTClaims: Claims{ let iss:String? let iat: Date? let exp: Date? } How should I overcome this?