<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHCloudIdentifierMapping",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHCloudIdentifierMapping"
  },
  "title" : "PHCloudIdentifierMapping"
}
-->

# PHCloudIdentifierMapping

An object that contains the cloud identifier result from looking up a local identifier, or an error indicating why the lookup failed.

```
@interface PHCloudIdentifierMapping : NSObject
```

## Overview

The error property exhibits two common errors—[`PHPhotosError.Code.identifierNotFound`](/documentation/Photos/PHPhotosError-swift.struct/Code/identifierNotFound) and [`PHPhotosError.Code.multipleIdentifiersFound`](/documentation/Photos/PHPhotosError-swift.struct/Code/multipleIdentifiersFound). When encountering multiple identifiers, use the error’s <doc://com.apple.documentation/documentation/Foundation/NSError/userInfo> property to retrieve a list of matched local identifiers. You can access them using [`PHLocalIdentifiersErrorKey`](/documentation/Photos/PHLocalIdentifiersErrorKey).

## Topics

### Getting the Cloud Identifier

[`@property (nonatomic, readonly, nullable) PHCloudIdentifier * cloudIdentifier;`](/documentation/Photos/PHCloudIdentifierMapping/cloudIdentifier)

The iCloud identifier associated with the local identifier.

### Getting the Lookup Error Reason

[`@property (nonatomic, readonly, nullable) NSError * error;`](/documentation/Photos/PHCloudIdentifierMapping/error)

An error indicating why the iCloud identifier lookup failed.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)