<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLModelError-swift.struct/Code/modelDecryption",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:@E@MLModelError@MLModelErrorModelDecryption"
  },
  "title" : "MLModelError.Code.modelDecryption"
}
-->

# MLModelError.Code.modelDecryption

An error code for problems related to decrypting models.

```
case modelDecryption
```

## Discussion

Core ML typically throws (Swift) or returns (Objective-C) this error when the
framework can’t decrypt a model.

The framework can’t decrypt encrypted models in macOS if System Integrity
Protection (SIP) is disabled.

---

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)