<!--
{
  "availability" : [
    "iOS: 7.1.0 -",
    "iPadOS: 7.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKTerminateForInvalidReceipt()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:@F@SKTerminateForInvalidReceipt"
  },
  "title" : "SKTerminateForInvalidReceipt()"
}
-->

# SKTerminateForInvalidReceipt()

Terminates an app if the license to use the app has expired.

```
func SKTerminateForInvalidReceipt()
```

---

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)