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.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 02/22/2023 at 12:58
Last Updated on 02/22/2023 at 19:07
Two flowers that represents StoreKit and Xcode with the text "Fix Finance Authentication Error" beneath them.

To fix the ASDErrorDomain Unhandled Exception, AMSErrorDomain Code 2, Finance Authentication Error, enable StoreKit Testing in your project.

Subscribe
A screenshot of the error that XCode prints.

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

A screenshot of the Edit Scheme Xcode modal that appears when you click edit scheme. Highlighted is the Run tab on the left and within this tab, the Options tab at the top. Finally, we have highlighted where you set the StoreKit Configuration File, which is found central to the modal.

Enable StoreKit testing using the tutorial below.

How to enable StoreKit testing in Xcode

Step Two: Clean Build Folder

A screenshot of Xcode showing you that if you press Product in the menu, you can Clean Build Folder using Command + Shift + K.

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.

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe