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

将ZLPhotoBrowser打包成xcframework库后,Demo程序引用报错:inheritance from non-protocol type 'UIView' #726

Closed LynnCheng closed 2 years ago

LynnCheng commented 2 years ago

Issue Description

  1. 将ZLPhotoBrowser打包成xcframework库后,Demo程序引用该xcframework编译报错。
  2. 将ZLPhotoBrowser打包成模拟器版本的framework后,Demo程序引用该framework编译报错。(打包成真机framework,没有这个问题)

Description and Steps

/Users/xxx/Library/Developer/Xcode/DerivedData/Demo-fwvfwjpokkvqoybzdnewrrwsajfs/Build/Products/Debug-iphoneos/ZLPhotoBrowser.framework/Modules/ZLPhotoBrowser.swiftmodule/arm64-apple-ios.swiftinterface:1052:23: error: inheritance from non-protocol type 'UIView'
@objc public protocol ZLImageStickerContainerDelegate : UIKit.UIView {
                      ^
/Users/xxx/Desktop/Demo/Demo/ViewController.swift:8:8: error: failed to build module 'ZLPhotoBrowser' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import ZLPhotoBrowser

Info

ZLPhotoBrowser version: 4.2.1 Device: Simulator iPhone 8 Device version: iOS 15.0 Xcode version: Xcode 13.4

LynnCheng commented 2 years ago

版本问题