macOS Photos Library PHAsset localIdentifiers changes between 10.14 and 10.15

We store PHAsset.localIdentifier for custom PHProjects (think image placements in slideshow). That identifier has completely changed in 10.15 for the same asset.


In 10.14, PHAsset.localIdentifier looked like "v8+D93eWRrWTOVwVeboJPw/L0/001"


After upgrading to 10.15, that same PHAsset.localIdentifier looks like "D2117FE3-3CC9-45D5-B0FA-E537890AFCFB/L0/001"


I have scoured the documentation and cannot find any way to match the old localIdentifier with the new.


Can we get the 10.15 asset with the 10.4 identifier?


Or is there an identifier we should use in 10.14 that will survive the upgrade to 10.15?

Replies

Only PHCloudIdentifier is intended to be persisted in project data.
See also Whats new in Photos API from WWDC 2017