HomeiOS Developmentios - FinanceKit - Authorization course of just isn't entitled error

ios – FinanceKit – Authorization course of just isn’t entitled error


I am presently experimenting with the most recent Xcode beta 15.3 (15E5194e) and making an attempt to combine FinanceKit into my undertaking. Nevertheless, I’ve encountered a persistent challenge the place the app crashes upon making an attempt to learn or request authorization, accompanied by the next error message:

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

Upon investigation, I’ve discovered no evident entitlements for FinanceKit, regardless of exploring choices like Apple Pockets. Moreover, I totally 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()
    }
    
    non-public func requestFinancePermission() {
        Process {
            do {
                let standing = strive await FinanceStore.shared.requestAuthorization()
            } catch {
                print("Error: (error)")
            }
        }
    }
    
    non-public func readFinancePermission() {
        Process {
            do {
                let standing = strive await FinanceStore.shared.authorizationStatus()
            } catch {
                print("Error: (error)")
            }
        }
    }
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments