How to solve the StoreKit Finance Authentication Error in Xcode
To fix the ASDErrorDomain Unhandled Exception, AMSErrorDomain Code 2, Finance Authentication Error, enable StoreKit Testing in your project.
When attempting to fetch products from a StoreKit Configuration file, we ran into an error similar to:
[Default] Error enumerating unfinished transactions for first transaction listener: Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x283328180 {Error Domain=AMSErrorDomain Code=2 "Finance Authentication Error" UserInfo={NSLocalizedDescription=Finance Authentication Error
To fix for the error, follow the steps below.
Step One: Enable StoreKit Testing
Enable StoreKit testing using the tutorial below.
Step Two: Clean Build Folder
Press Command + Shift + K to clean the build folder.
This will make sure that the change took place, removing the error next time you run the project.