<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMMetadataCreateKeySpaceFromIdentifier(allocator:identifier:keySpaceOut:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMMetadataCreateKeySpaceFromIdentifier"
  },
  "title" : "CMMetadataCreateKeySpaceFromIdentifier(allocator:identifier:keySpaceOut:)"
}
-->

# CMMetadataCreateKeySpaceFromIdentifier(allocator:identifier:keySpaceOut:)

Creates a copy of the keyspace by using an identifier.

```
func CMMetadataCreateKeySpaceFromIdentifier(allocator: CFAllocator?, identifier: CFString, keySpaceOut: UnsafeMutablePointer<CFString?>) -> OSStatus
```

## Parameters

`allocator`

The allocator to use for creating the identifier.

`identifier`

The identifier to be inspected.

`keySpaceOut`

Upon return, a pointer to the keyspace that was used to create the identifier.

## Return Value

If successful, a nonzero result code. See [Metadata Identifier Error Codes](/documentation/CoreMedia/metadata-identifier-errors).

## Discussion

---

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)