[!] The '' target has libraries with conflicting names: libwechatsdk.a.

工程中原集成过友盟分享,其中的SDK中包含了 libwechatsdk.a, 而集成微信登录的时候再次执行 pod install 则抛出了如下异常,即有已存在的 SDK 重复了.

[!] The 'Pods-Integration' target has libraries with conflicting names: libwechatsdk.a.

首先,尝试搜索 UMCShare 得到了如下的列表 list

Last login: Wed Dec  8 15:32:40 on ttys003
fyhsurvivors@bogon ~ % pod search UMCShare/Social/ReducedWeChat
Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2
[!] Unable to find a pod with name, author, summary, or description matching `UMCShare/Social/ReducedWeChat`
fyhsurvivors@bogon ~ % pod search ReducedWeChat                
Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2

zsh: suspended  pod search ReducedWeChat
fyhsurvivors@bogon ~ % pod search UMCShare 
Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2




-> UMCShare (6.10.2)
   UMeng+ component SDK
   pod 'UMCShare', '~> 6.10.2'
   - Homepage: http://developer.umeng.com/docs/66632/detail/66825
   - Source:  
   https://umplus-sdk-download.oss-cn-shanghai.aliyuncs.com/iOS/UMShare/UMShare_6.10.2.zip
   - Versions: 6.10.2, 6.10.1, 6.9.10, 6.9.9, 6.9.8, 6.9.6, 6.9.5, 6.9.4, 6.9.3,
   6.9.2, 6.9.1, 6.9.0, 6.8.2, 6.8.1, 6.8.1beta [edu-git-cocoapods-specs repo]
   - Subspecs:
     - UMCShare/Core (6.10.2)
     - UMCShare/UI (6.10.2)
     - UMCShare/Social (6.10.2)
     - UMCShare/Social/ReducedWeChat (6.10.2)
     - UMCShare/Social/WeChat (6.10.2)
     - UMCShare/Social/ReducedSina (6.10.2)
     - UMCShare/Social/Sina (6.10.2)
     - UMCShare/Social/ReducedQQ (6.10.2)
     - UMCShare/Social/QQ (6.10.2)
     - UMCShare/Social/AlipayShare (6.10.2)
     - UMCShare/Social/DingDing (6.10.2)
     - UMCShare/Social/YiXin (6.10.2)
:

其次,在 search 的列表中发现了有相对应的精简版 SDK

     - UMCShare/Social/ReducedWeChat (6.10.2)

再次,既然有了 plan b 那么就可以尝试将项目中已有的 sdk 替换精简版后再安装微信的 SDK 即可,两者可以独立拆开

#pod 'UMCShare/Social/WeChat'
pod 'UMCShare/Social/ReducedWeChat'
pod 'WechatOpenSDK'

最后,修改后再次尝试 pod install 嗯, ojk ~


以上便是此次分享的全部内容,希望能对大家有所帮助!

你可能感兴趣的:([!] The '' target has libraries with conflicting names: libwechatsdk.a.)