企业微信使用小程序调用download的api下载图片后,再调用保存到相册的api, 报错如下:
saveImageToPhotosAlbum:fail save fail:Error Domain=ALAssetsLibraryErrorDomain Code=-1 "未知错误" UserInfo={NSLocalizedDescription=未知错误, NSUnderlyingError=0x281e01a70 {Error Domain=ALAssetsLibraryErrorDomain Code=-1 "未知错误" UserInfo={NSLocalizedDescription=未知错误, NSUnderlyingError=0x281e09620 {Error Domain=ALAssetsLibraryErrorDomain Code=-1 "未知错误" UserInfo={NSLocalizedDescription=未知错误, NSUnderlyingError=0x281e0ad30 {Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 19167 named com.apple.photos.service was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo=0x280b8dda0 (not displayed)}}}}}}".
重点是同一部手机, 微信环境可以保存.
排除权限问题. IOS版本14 企业微信3.1.1
你好,可以提供下能够复现问题的代码片段看看