How to solve the StoreKit Finance Authentication Error in Xcode

Oscar de la Hera Gomez
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.

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.

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.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details