简体   繁体   English

使用 PHPickerViewController 导入图像时出现 PHAssetExportRequestErrorDomain 错误 0 和 2

[英]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.

相关问题 使用`PHPickerViewController`选择视频时是否可以限制视频时长? - Is it possible to limit the video duration when selecting a video using `PHPickerViewController`? 当用户尝试使用具有选定照片权限的 PHPickerViewController 在 IOS 14、swift 5 中检索视频时,获取视频数据为零 - Getting video data nil when user tries to retrieve video using PHPickerViewController with selected photos permission in IOS 14, swift 5 使用目录检索图像时出现错误 - Getting error when using directory to retrieve image 使用 PHPickerViewController 和 UIImagePickerController 是否需要请求权限? - Is request permission require for using PHPickerViewController & UIImagePickerController? PHPickerViewController 点击搜索时出现错误...“无法加载照片” - PHPickerViewController tapping on Search gets error... "Unable to load photos" 尝试使用AV Foundation捕获静止图像时,始终出现“无效/无效的连接通过”错误 - Keep getting “inactive/invalid connection passed” error when trying to capture still image using AV Foundation 使用FHSTwitterEngine发布图像时出错 - Getting error while posting image using FHSTwitterEngine 使用localStorage时在iPhone上出现安全错误 - Getting Security Error on iPhone when using localStorage 使用tableview函数时出现错误 - getting the error when using tableview function Flutter:从网络错误导入图像Url - Flutter: Importing image Url from Network error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM