[英]Getting a PHAssetExportRequestErrorDomain error 0 and 2 when importing an image using a PHPickerViewController
I got this message when trying to import an image using a PHPickerViewController:我在尝试使用 PHPickerViewController 导入图像时收到此消息:
2022-10-29 12:52:17.775185+0200 screenfreeze[38500:5423936] [claims] 2AA2E9DE-9603-4723-B04C-35F09BB99667 grantAccessClaim reply is an error: Error Domain=NSCocoaErrorDomain Code=4101 "Couldn't communicate with a helper application."
2022-10-29 12:52:17.775185+0200 screenfreeze[38500:5423936] [claims] 2AA2E9DE-9603-4723-B04C-35F09BB99667 grantAccessClaim 回复是一个错误:Error Domain=NSCocoaErrorDomain Code=4101 “Couldn't communicate with a帮助应用程序。” UserInfo={NSUnderlyingError=0x600000f20330 {Error Domain=PHAssetExportRequestErrorDomain Code=0 "The operation couldn't be completed. (PHAssetExportRequestErrorDomain error 0.)" UserInfo={NSLocalizedDescription=The operation couldn't be completed.
UserInfo={NSUnderlyingError=0x600000f20330 {Error Domain=PHAssetExportRequestErrorDomain Code=0 “操作无法完成。(PHAssetExportRequestErrorDomain 错误 0。)” UserInfo={NSLocalizedDescription=操作无法完成。 (PHAssetExportRequestErrorDomain error 0.), NSUnderlyingError=0x600000f20300 {Error Domain=PAMediaConversionServiceErrorDomain Code=2 "The operation couldn't be completed. (PAMediaConversionServiceErrorDomain error 2.)" UserInfo={NSLocalizedDescription=The operation couldn't be completed.
(PHAssetExportRequestErrorDomain 错误 0。),NSUnderlyingError=0x600000f20300 {Error Domain=PAMediaConversionServiceErrorDomain Code=2 “操作无法完成。(PAMediaConversionServiceErrorDomain 错误 2。)” UserInfo={NSLocalizedDescription=操作无法完成。 (PAMediaConversionServiceErrorDomain error 2.)}}}}}
(PAMediaConversionServiceErrorDomain 错误 2。)}}}}}
What causes this and how can I avoid it?是什么原因造成的,我该如何避免?
It's a known issue that the red flower image can't be selected using the simulator (63426347).无法使用模拟器选择红色花朵图像是一个已知问题 (63426347)。
The issue only affects the simulator environment so it should work on actual hardwares.该问题仅影响模拟器环境,因此它应该适用于实际硬件。 If you want to continue using the simulator to test, you can select other images instead.
如果想继续使用模拟器测试,可以select其他图片代替。
See https://developer.apple.com/forums/thread/699155 for more information.有关详细信息,请参阅https://developer.apple.com/forums/thread/699155 。
I got this error when I tried to select this flower picture from the iOS simulator:当我尝试从 iOS 模拟器 select 这张花图片时,我得到了这个错误:
The other sample pictures have no such issue.其他示例图片没有这样的问题。
I noticed that only that sample image is HDR.我注意到只有那个样本图像是 HDR。 I think the issue is that the flower image is somehow corrupted, because it works with HDR images I took.
我认为问题在于花卉图像以某种方式损坏了,因为它适用于我拍摄的 HDR 图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.