longitachi / ZLPhotoBrowser

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

@rpath/libswiftAVFoundation.dylib #839

Closed forkdog closed 10 months ago

forkdog commented 11 months ago

Issue Description

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: 4.4.3.2 Device: 模拟器 Device version: iOS 14.0 模拟器 Xcode version: Xcode 14.3.1

新建一个空白工程,使用CocoaPods导入pod 'ZLPhotoBrowser',不写任何代码,运行在iOS14模拟器上会崩溃,希望作者修复下。

Warning: Error creating LLDB target at path '/Users/PP/Library/Developer/Xcode/DerivedData/Demo-exaggbsmpndngccldnxlkzennvgz/Build/Products/Debug-iphonesimulator/Demo.app'- using an empty LLDB target which can cause slow memory reads from remote devices. dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /Users/PP/Library/Developer/CoreSimulator/Devices/786A8A38-C0CF-1F69-9EB3-C422F77B004A/data/Containers/Bundle/Application/3883B27C-3354-45F2-AE5B-A0B829843AFB/Demo.app/Demo Reason: image not found

longitachi commented 11 months ago

822

可以试下14.0的真机。 当前已知在14.0还是14.0.1的模拟器上会crash,我这边没有对应版本的机器,没法测

forkdog commented 11 months ago

我也没,那还能修复在模拟器crash的问题吗

KhayraHongtao commented 10 months ago

User dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /Users/apple/Library/Developer/CoreSimulator/Devices/8B09549D-9F9E-411E-8979-32A9AF1EC187/data/Containers/Bundle/Application/B12131CB-F491-48E2-AF9B-C4863E561670/HTProjectSwift.app/Frameworks/ZLPhotoBrowser.framework/ZLPhotoBrowser Reason: image not found

模拟器14.0.1版本 真机 13.6.1版本都会cash

longitachi commented 10 months ago

demo iPhone11 13.6.1系统 正常运行

longitachi commented 10 months ago

暂时没有能复现的设备,你们能复现的可以尝试解决下,提个PR

longitachi commented 10 months ago

@guanru 提了pr修复了, @forkdog @KhayraHongtao 可以用这个分支试下,看是否还会crash https://github.com/guanru/ZLPhotoBrowser/tree/upstream/fix

KhayraHongtao commented 9 months ago

@guanru 提了pr修复了, @forkdog @KhayraHongtao 可以用这个分支试下,看是否还会crash https://github.com/guanru/ZLPhotoBrowser/tree/upstream/fix

我想知道做了哪些设置的处理吗? 我pod 到工程里面,还是有问题, 下载 demo运行没问题

longitachi commented 9 months ago

@KhayraHongtao https://github.com/guanru/ZLPhotoBrowser/commit/b67f8047439e61c25d1149ce7c17c070bf1a0a72 可以在你的项目中因如下这个libswiftAVFoundation.tbd framework

KhayraHongtao commented 9 months ago

暂时没有能复现的设备,你们能复现的可以尝试解决下,提个PR

@longitachi 我想知道做了哪些设置的处理吗? 我pod 到工程里面,还是有问题, 下载 demo运行没问题

KhayraHongtao commented 9 months ago

@KhayraHongtao guanru@b67f804 可以在你的项目中因如下这个libswiftAVFoundation.tbd framework

我在 Build Phases Link Binary With Libraries + libswiftAVFoundation.tbd
Status Required 和 Optional 运行还是不行

KhayraHongtao commented 9 months ago

@KhayraHongtao guanru@b67f804 可以在你的项目中因如下这个libswiftAVFoundation.tbd framework

你好,我新建一个demo, pod 'ZLPhotoBrowser', '~> 4.4.5'

选择 "General"(常规)选项卡。 滚动到 "Frameworks, Libraries, and Embedded Content"(框架、库和嵌入内容)部分。 在这个部分,你可以点击加号(+)按钮以添加框架。 在弹出窗口中,你可以搜索 libswiftAVFoundation.tbd 或手动选择它。

运行还不OK;

longitachi commented 9 months ago

等明天我用的demo,推到cocoapods尝试解决下。

KhayraHongtao commented 9 months ago

等明天我用的demo,推到cocoapods尝试解决下。 好的,感谢

KhayraHongtao commented 9 months ago

等明天我用的demo,推到cocoapods尝试解决下。

可以了,回复一下我,非常感谢

longitachi commented 9 months ago

整不了,想着在podspec里面添加一下s.frameworks = 'libswiftAVFoundation' 这个,发现不支持。你能提供个录屏吗,我看下怎么在13.6.1的机器上crash的,上面我也提供了视频,真机上没有遇到crash

KhayraHongtao commented 9 months ago

整不了,想着在podspec里面添加一下s.frameworks = 'libswiftAVFoundation' 这个,发现不支持。你能提供个录屏吗,我看下怎么在13.6.1的机器上crash的,上面我也提供了视频,真机上没有遇到crash

我有个录屏,我在怎么回答你上传录屏

KhayraHongtao commented 9 months ago

整不了,想着在podspec里面添加一下s.frameworks = 'libswiftAVFoundation' 这个,发现不支持。你能提供个录屏吗,我看下怎么在13.6.1的机器上crash的,上面我也提供了视频,真机上没有遇到crash

http://market.file.meididi88.com/Patrol/ios_video_1697103687.018455.mp4 我生成了一个链接,看下

longitachi commented 9 months ago

把demo传上来吧,我试下你的demo。手机系统是13.6.1的吗?

KhayraHongtao commented 9 months ago

把demo传上来吧,我试下你的demo。手机系统是13.6.1的吗?

github 出现的问题,我上传到 码云;; https://gitee.com/Khayra_ht/update_photos_deme/tree/main/

在main 分支里面

KhayraHongtao commented 9 months ago

把demo传上来吧,我试下你的demo。手机系统是13.6.1的吗?

14.0.1

KhayraHongtao commented 9 months ago

把demo传上来吧,我试下你的demo。手机系统是13.6.1的吗?

下载你的demo, 模拟器14.0.1 运行是成功了, 但是集成 pod, 在运行 就 报错

longitachi commented 9 months ago
image

直接把zip包拖到评论窗口了,在这个issue里传吧

KhayraHongtao commented 9 months ago

demodemo----.zip

KhayraHongtao commented 9 months ago

好的,看下,谢谢,麻烦了

KhayraHongtao commented 8 months ago

@longitachi 你好,有复现出来吗?

longitachi commented 8 months ago

没有14.0.1设备。。试了其他相近系统,暂没发现

KhayraHongtao commented 8 months ago

没有14.0.1设备。。试了其他相近系统,暂没发现

企业微信截图_0e24fc78-8808-43e9-b125-35d98557c484

longitachi commented 8 months ago

@KhayraHongtao 已修复

KhayraHongtao commented 8 months ago

@KhayraHongtao 已修复

推上去了吗? 我可以更新 sdk 版本就可以了?

KhayraHongtao commented 8 months ago

@KhayraHongtao 已修复

看到了,,,谢谢

KhayraHongtao commented 8 months ago

@KhayraHongtao 已修复

大概,什么时候推送个版本上去 , 我先改pod里面文件

longitachi commented 8 months ago

明天吧