Question

Unable to load receipt, ensure you are logged in to a valid Apple account.

  • 15 November 2023
  • 1 reply
  • 25 views

Badge

WARN: 🍎‼️ Unable to load receipt, ensure you are logged in to a valid Apple account.

Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “sandboxReceipt” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/private/var/mobile/Containers/Data/Application/F54CAA91-D67A-404A-9ED*-1D3180B2F577/StoreKit/sandboxReceipt, NSUnderlyingError=0x282eb8de0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

 

 

Anyone able to to help me with this error please?


1 reply

Userlevel 3
Badge +6

Hi @zachary-uptin-1da7d8,

This error can crop up fairly regularly in sandbox. First, make sure that you are signed in with a sandbox account that you’ve created in App Store Connect: https://www.revenuecat.com/docs/apple-app-store#create-a-sandbox-test-account

If you’re using a dummy account that is not connected to a real email (for example “kaitlin+sandbox@gmail”), it’s good practice as well to go to iCloud and log in your sandbox user and go through any security measures required in the process to be sure your sandbox account is valid.

Next, you may have to make a purchase to generate a receipt before attempting the operation. This is due to how the receipt is generated -  in sandbox a receipt is generated when a user makes a purchase and is saved against the sandbox account, while in production a receipt is generated when a user downloads the app and is saved against the Apple account.

Reply