<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKOverlayDelegate/storeOverlayDidFailToLoad(_:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SKOverlayDelegate(im)storeOverlay:didFailToLoadWithError:"
  },
  "title" : "storeOverlayDidFailToLoad(_:error:)"
}
-->

# storeOverlayDidFailToLoad(_:error:)

Indicates that an overlay failed to load.

```
optional func storeOverlayDidFailToLoad(_ overlay: SKOverlay, error: any Error)
```

## Parameters

`overlay`

An overlay object that failed to load.

`error`

An indication of why the overlay failed to load.

## Discussion

Common cases for a failure when loading an overlay are:

- Using invalid iTunes identifiers.
- Trying to present an overlay for media that’s not an app.
- Trying to present an overlay from an app extension or the simulator.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)