longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.76k stars 963 forks source link

更新到4.3.6之后报错:NSError找不到类型 #756

Closed IvesZhan closed 1 year ago

IvesZhan commented 2 years ago

Issue Description

**更新到4.3.6之后报错 1、ZLPhotoManager中402行

NSError.assetSaveError (Type 'NSError' has no member 'assetSaveError')

2、ZLVideoManager中102行,155行,163行,171行 报错信息都是找不到NSError的扩展类型**

Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

Info

ZLPhotoBrowser version: e.g. 4.3.6 Device: e.g. iPhone X Device version: e.g. iOS 14.0 Xcode version: e.g. Xcode 12.0

Configuration code of ZLPhotoConfiguration

        ZLPhotoConfiguration.default().shouldAnialysisAsset = false
        ZLPhotoConfiguration.default().allowSelectOriginal = false
        ZLPhotoConfiguration.default().allowEditImage = false
        ZLPhotoConfiguration.default().allowSelectGif = false
        ZLPhotoConfiguration.default().allowTakePhoto = false
        ZLPhotoConfiguration.default().allowSelectVideo = false
        ZLPhotoConfiguration.default().allowPreviewPhotos = false
        ZLPhotoConfiguration.default().maxSelectCount = 1
        ZLPhotoConfiguration.default().showSelectBtnWhenSingleSelect = true
        ZLPhotoUIConfiguration.default().indexLabelBgColor = UIColor(hexStr: "FC4077")
        ZLPhotoUIConfiguration.default().bottomToolViewBtnNormalBgColor = UIColor(hexStr: "FC4077")
longitachi commented 2 years ago

https://github.com/longitachi/ZLPhotoBrowser/blob/master/Sources/Extensions/NSError%2BZLPhotoBrowser.swift pod集成的吗?拉下来有这个文件吗?

longitachi commented 2 years ago

我自己Pod集成试了下,没问题,不会报错啊

hheng101 commented 1 year ago

同一个问题,我重启xcode,然后cmd+shift+k清一下缓存就好了