How to solve the no active account StoreKit error in Xcode

Oscar de la Hera Gomez
Two flowers that represent StoreKit and XCode side by side. Beneath them sits the text "Fix StoreKit No Active Account Error."

To fix Error enumerating all current transactions, enable StoreKit Testing in your project.

2023-02-22 14:33:19.191682-0500 Starter Project[64834:5862708] [Default] Error enumerating all current transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={storefront-country-code=USA, client-environment-type=Sandbox, AMSServerErrorCode=0, NSLocalizedDescription=No active account}

When attempting to fetch products from a StoreKit Configuration file, we ran into an error similar to:

[Default] Error enumerating all current transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={storefront-country-code=USA, client-environment-type=Sandbox, AMSServerErrorCode=0, NSLocalizedDescription=No active account}

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