The documentation for PHAssetChangeRequest.revertAssetContentToOriginal
says it will fail if the original asset content is not on the current device so you should use PHAssetResourceManager
to download it first, but this no longer seems to be the case in the latest iOS versions because an error no longer occurs when I take a photo on my iPhone, edit it, open Photos on my iPad and let it sync, then open my app on iPad and call revertAssetContentToOriginal
for that asset. Does the system now take care of downloading the original when needed?
Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports.
Also, worth mentioning, if you're attending WWDC25 there is a Camera & Photos frameworks group lab today at 6PM PST where you can ask questions about PhotoKit.
Bug Reporting: How and Why? has tips on creating your bug report.