6***@qq.com
6***@qq.com
  • 发布:2020-12-29 09:42
  • 更新:2020-12-29 14:43
  • 阅读:1858

flutter 应用内集成uni-app sdk SDWebImage引用冲突该如何解决

分类:uni小程序sdk
objc[627]: Class SDAnimatedImageView is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6bdc98) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053cf8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImageManager is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6beaf8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053d48). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImageCombinedOperation is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6beb20) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053d70). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImageOptionsResult is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6beb98) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053de8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImageOptionsProcessor is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6bebe8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053e38). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageAssetManager is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6bdf68) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053e88). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImageDownloaderConfig is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be8c8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053ed8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImageCacheSerializer is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be7d8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053f28). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebPCoderFrame is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImageWebPCoder.framework/SDWebImageWebPCoder (0x10d649aa8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053fa0). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageWebPCoder is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImageWebPCoder.framework/SDWebImageWebPCoder (0x10d649ad0) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101053fc8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageCacheConfig is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be008) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101054018). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageIOCoder is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be328) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101054068). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImagePrefetcher is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6bec38) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x1010540b8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImagePrefetchToken is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6bec60) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x1010540e0). One of the two will be used. Which one is undefined.  
objc[627]: Class SDAnimatedImage is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6bdbf8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101054158). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImageTransition is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6becd8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x1010541a8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageCache is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6bdfb8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x1010541f8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWebImageDownloaderOperation is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be968) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101054248). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageCoderHelper is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be120) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x1010542c0). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageLoadersManager is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be378) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x1010542e8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDWeakProxy is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be6e8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101054338). One of the two will be used. Which one is undefined.  
objc[627]: Class SDAsyncBlockOperation is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6bdce8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101054388). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageCodersManager is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be148) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x1010543d8). One of the two will be used. Which one is undefined.  
objc[627]: Class SDImageGIFCoder is implemented in both /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/Frameworks/SDWebImage.framework/SDWebImage (0x10d6be1e8) and /private/var/containers/Bundle/Application/003191B2-27BE-4C89-81B2-44B90583FFE3/企业云门户.app/企业云门户 (0x101054478). One of the two will be used. Which one is undefined.
2020-12-29 09:42 负责人:无 分享
已邀请:
6***@qq.com

6***@qq.com (作者)

发现的原因是因为flutter项目中已经通过cocoapods 引用了SDWebImage库了 引入uniapp时与libSDWebImage.a冲突

  • 天生DR

    uni-app 确实用到了 SDWebImage 二选一吧 现在libSDWebImage 版本是 tag 5.10.0 你可以选择一个比较高的版本 它应该是向下兼容的

    2020-12-29 20:13

  • j***@163.com

    回复 天生DR:您好,既然您已经修改了第三库的源码,能否给iOS的库换个前缀呢?


    我的项目想使用小程序SDK。


    我们的项目是一个Workspace下由多个Framework的project构建的。


    没有办法静态连接libSDWebImage.a这个静态库。各个Framework都应该动态连接第三方库

    2021-01-12 13:59

  • 天生DR

    回复 j***@163.com: 这个库文件比较多 因为还涉及到以后的升级问题 所以加前缀可能不太现实 目前你可以通过添加保留一份Framework 通过 添加Header Search Path 在你的工程里 引用到 SDWebImage

    2021-01-12 14:42

  • 9***@qq.com

    回复 天生DR: 这样也太傻了吧, iOS的集成为什么不弄成pod集成? 很简单的方式,还避免了冲突.

    而且我观察了下静态库,那些扩展功能全是第三方开源库的.a文件;

    如果你们修改了第三方那么fork一份去修改,我们pod引用修改下地址;

    如果你们修改都没有,那估计方案就没考虑过原生app, 就是整个app全是uniapp的方案;

    还是希望能修改下接入方式,太拉胯了;

    2021-10-29 16:43

  • 2***@qq.com

    iOS SDK 没有pod集成方式吗?

    2023-01-30 14:44

该问题目前已经被锁定, 无法添加新回复