Friday, February 16, 2024
HomeiOS Developmentios - FinanceKit - Authorization course of shouldn't be entitled error

ios – FinanceKit – Authorization course of shouldn’t be entitled error


I am at the moment experimenting with the most recent Xcode beta 15.3 (15E5194e) and trying to combine FinanceKit into my challenge. Nonetheless, I’ve encountered a persistent situation the place the app crashes upon trying to learn or request authorization, accompanied by the next error message:

FinanceKit/FinanceStore+FinancialDataAuthorization.swift:52: Deadly error: Course of shouldn't be entitled

Upon investigation, I’ve discovered no evident entitlements for FinanceKit, regardless of exploring choices like Apple Pockets. Moreover, I completely examined the data.plist for related privateness values however discovered nothing pertinent.

Here is the code snippet that triggers the deadly error, whether or not it is the request or learn operate:

import FinanceKit
import UIKit

class ViewController: UIViewController {
    
    override func viewDidLoad() {
        tremendous.viewDidLoad()
        
        requestFinancePermission()
        // readFinancePermission()
    }
    
    personal func requestFinancePermission() {
        Activity {
            do {
                let standing = attempt await FinanceStore.shared.requestAuthorization()
            } catch {
                print("Error: (error)")
            }
        }
    }
    
    personal func readFinancePermission() {
        Activity {
            do {
                let standing = attempt await FinanceStore.shared.authorizationStatus()
            } catch {
                print("Error: (error)")
            }
        }
    }
}



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments