<!--
{
  "availability" : [
    "iOS: 2.0.0 - 8.0.0",
    "iPadOS: 2.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.0.0 - 10.10.0",
    "tvOS: 9.0.0 - 9.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/PropertyListSerialization/propertyListFromData(_:mutabilityOption:format:errorDescription:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPropertyListSerialization(cm)propertyListFromData:mutabilityOption:format:errorDescription:"
  },
  "title" : "propertyListFromData(_:mutabilityOption:format:errorDescription:)"
}
-->

# propertyListFromData(_:mutabilityOption:format:errorDescription:)

This method is deprecated. Use [`data(fromPropertyList:format:options:)`](/documentation/Foundation/PropertyListSerialization/data(fromPropertyList:format:options:)) instead.

```
class func propertyListFromData(_ data: Data, mutabilityOption opt: PropertyListSerialization.MutabilityOptions = [], format: UnsafeMutablePointer<PropertyListSerialization.PropertyListFormat>?, errorDescription errorString: UnsafeMutablePointer<NSString?>?) -> Any?
```

## Parameters

`data`

A data object containing a serialized property list.

`opt`

The options used to create the property list. For possible values, see [`PropertyListSerialization.MutabilityOptions`](/documentation/Foundation/PropertyListSerialization/MutabilityOptions).

`format`

If the property list is valid, upon return contains the format. `format` can be `nil`, in which case the property list format is not returned. For possible values, see [`PropertyListSerialization.PropertyListFormat`](/documentation/Foundation/PropertyListSerialization/PropertyListFormat).

`errorString`

Upon return, if the conversion is successful, `errorString` is `nil`. If the conversion fails, upon return contains a string describing the nature of the error.

## Return Value

A property list object corresponding to the representation in `data`. If data is not in a supported format, returns `nil`.

## See Also

[`class func propertyList(from: Data, options: PropertyListSerialization.ReadOptions, format: UnsafeMutablePointer<PropertyListSerialization.PropertyListFormat>?) throws -> Any`](/documentation/Foundation/PropertyListSerialization/propertyList(from:options:format:))

Creates and returns a property list from the specified data.



---

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)