查看: 4566|回复: 27

[iOS常见问题] pod上3.5.2之后的版本更新需要注意的问题!(重要)

[复制链接]

Rank: 5Rank: 5

主题:
帖子:
积分:
0

[iOS常见问题] pod上3.5.2之后的版本更新需要注意的问题!(重要)

[复制链接]
4566 27 | 发表于 2016-12-26 15:32:32 |阅读模式 | |
本帖最后由 刘芳丽 于 2017-10-18 11:05 编辑

由于pod升级的原因,目前3.5.2版本之后,添加命令行需要改进,目前我们开了几个CocoaPods国内以及国外ShareSDK的下载源:
这些国外源的作用:解决国内使用CocoaPods下载ShareSDK觉得久的用户
ShareSDK关于CocoaPods源的说明:

国内服务器的源:
https://git.oschina.net/MobClub/ShareSDK-for-iOS.git  (加这个源,微信sdk包含支付,写支付宝命令有支付宝sdk)
https://git.oschina.net/MobClub/ShareSDK-for-iOS-Spec.git  (加这个源,微信sdk不带支付,即使加了支付宝命令也没有支付宝sdk)


国外服务器的源:
https://github.com/MobClub/ShareSDK3.x-for-iOS.git加这个源,微信sdk包含支付,写支付宝命令有支付宝sdk
https://github.com/MobClub/ShareSDK-for-iOS-Spec.git (加这个源,微信sdk不带支付,即使加了支付宝命令也没有支付宝sdk)

如果要下载不带微信支付的sdk和支付宝的sdk,需要在后面加源,pod更新比较慢的话,也可以在后面加源

1.如果只是集成ShareSDK的话:
  1. # 主模块(必须)
  2. pod 'ShareSDK3',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'

  3. # UI模块(非必须,需要用到ShareSDK提供的分享菜单栏和分享编辑页面需要以下1行)
  4. pod 'ShareSDK3/ShareSDKUI',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'


  5. # 平台SDK模块(对照一下平台,需要的加上,如果只需要QQ、微信、新浪微博,只需要以下3行)

  6. pod 'ShareSDK3/ShareSDKPlatforms/QQ',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  7. pod 'ShareSDK3/ShareSDKPlatforms/SinaWeibo',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  8. pod 'ShareSDK3/ShareSDKPlatforms/WeChat',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  9. pod 'ShareSDK3/ShareSDKPlatforms/RenRen',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  10. pod 'ShareSDK3/ShareSDKPlatforms/AliPaySocial',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  11. pod 'ShareSDK3/ShareSDKPlatforms/Kakao',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  12. pod 'ShareSDK3/ShareSDKPlatforms/Yixin',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  13. pod 'ShareSDK3/ShareSDKPlatforms/Facebook',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  14. pod 'ShareSDK3/ShareSDKPlatforms/Copy',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  15. pod 'ShareSDK3/ShareSDKPlatforms/Evernote',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  16. pod 'ShareSDK3/ShareSDKPlatforms/GooglePlus',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  17. pod 'ShareSDK3/ShareSDKPlatforms/Instagram’,:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  18. pod 'ShareSDK3/ShareSDKPlatforms/Instapaper',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  19. pod 'ShareSDK3/ShareSDKPlatforms/Line’,:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  20. pod 'ShareSDK3/ShareSDKPlatforms/Mail',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  21. pod 'ShareSDK3/ShareSDKPlatforms/SMS',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  22. pod 'ShareSDK3/ShareSDKPlatforms/MeiPai',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  23. pod 'ShareSDK3/ShareSDKPlatforms/YouTube',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  24. pod 'ShareSDK3/ShareSDKPlatforms/Twitter',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  25. pod 'ShareSDK3/ShareSDKPlatforms/DingTalk',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  26. pod 'ShareSDK3/ShareSDKPlatforms/Dropbox',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  27. pod 'ShareSDK3/ShareSDKPlatforms/WhatsApp',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'


  28. # 使用配置文件分享模块(非必需)
  29. pod 'ShareSDK3/ShareSDKConfigurationFile',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'

  30. # 扩展模块(非必需,用我们的UI要加上)
  31. pod 'ShareSDK3/ShareSDKExtension',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'


复制代码



2.如果同时集成ShareSDK和SMSSDK的话:
  1. # 主模块(必须)
  2. pod 'ShareSDK3',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'

  3. # UI模块(非必须,需要用到ShareSDK提供的分享菜单栏和分享编辑页面需要以下1行)
  4. pod 'ShareSDK3/ShareSDKUI',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'


  5. # 平台SDK模块(对照一下平台,需要的加上,如果只需要QQ、微信、新浪微博,只需要以下3行)

  6. pod 'ShareSDK3/ShareSDKPlatforms/QQ',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  7. pod 'ShareSDK3/ShareSDKPlatforms/SinaWeibo',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  8. pod 'ShareSDK3/ShareSDKPlatforms/WeChat',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  9. pod 'ShareSDK3/ShareSDKPlatforms/RenRen',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  10. pod 'ShareSDK3/ShareSDKPlatforms/AliPaySocial',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  11. pod 'ShareSDK3/ShareSDKPlatforms/Kakao',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  12. pod 'ShareSDK3/ShareSDKPlatforms/Yixin',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  13. pod 'ShareSDK3/ShareSDKPlatforms/Facebook',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  14. pod 'ShareSDK3/ShareSDKPlatforms/Copy',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  15. pod 'ShareSDK3/ShareSDKPlatforms/Evernote',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  16. pod 'ShareSDK3/ShareSDKPlatforms/GooglePlus',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  17. pod 'ShareSDK3/ShareSDKPlatforms/Instagram’,:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  18. pod 'ShareSDK3/ShareSDKPlatforms/Instapaper',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  19. pod 'ShareSDK3/ShareSDKPlatforms/Line’,:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  20. pod 'ShareSDK3/ShareSDKPlatforms/Mail',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  21. pod 'ShareSDK3/ShareSDKPlatforms/SMS',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'
  22. pod 'ShareSDK3/ShareSDKPlatforms/WhatsApp',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'


  23. # 使用配置文件分享模块(非必需)
  24. pod 'ShareSDK3/ShareSDKConfigurationFile',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'

  25. # 扩展模块(非必需)
  26. pod 'ShareSDK3/ShareSDKExtension',:git => ‘https://github.com/MobClub/ShareSDK-for-iOS-Spec.git'

  27. #SMS短信验证
  28. pod 'SMSSDK'

复制代码







Rank: 1

主题:
帖子:
积分:
0
发表于 2016-12-26 17:05:43 |
LZ你好,请问下3.5.2版本的shareSDK都要按照这样拉是吗?还是说特定版本的dodoapod需要这样拉?

Rank: 5Rank: 5

主题:
帖子:
积分:
0
 楼主| 发表于 2016-12-26 17:13:13 |
FinLaas 发表于 2016-12-26 17:05
LZ你好,请问下3.5.2版本的shareSDK都要按照这样拉是吗?还是说特定版本的dodoapod需要这样拉? ...

3.5.2之后的版本需要这样做,之前的不需要,包括3.5.2版本的

Rank: 1

主题:
帖子:
积分:
0
发表于 2016-12-26 17:18:26 |
LZ你好,请问下 MOBFoundation 一定要用 IDFA 的版本吗?

Rank: 5Rank: 5

主题:
帖子:
积分:
0
 楼主| 发表于 2016-12-26 17:28:45 |
FinLaas 发表于 2016-12-26 17:18
LZ你好,请问下 MOBFoundation 一定要用 IDFA 的版本吗?

如果是和短信sdk一起用的话,是用idfa版本的,如果只是单独的分享sdk,不需要

Rank: 1

主题:
帖子:
积分:
0
发表于 2016-12-28 18:47:43 |
[!] There are multiple dependencies with different sources for `ShareSDK3` in `Podfile`:

- ShareSDK3 (from `https://git.oschina.net/MobClub/ShareSDK-for-iOS-Spec.git`)
- ShareSDK3/ShareSDKPlatforms/QQ (from `https://github.com/MobClub/ShareSDK-for-iOS-Spec.git`)
- ShareSDK3/ShareSDKPlatforms/SinaWeibo (from `https://github.com/MobClub/ShareSDK-for-iOS-Spec.git`)
- ShareSDK3/ShareSDKPlatforms/WeChat (from `https://github.com/MobClub/ShareSDK-for-iOS-Spec.git`)

更新不了 这个情况是咋回收

Rank: 5Rank: 5

主题:
帖子:
积分:
0
 楼主| 发表于 2016-12-28 21:04:08 |
熊姿 发表于 2016-12-28 18:47
[!] There are multiple dependencies with different sources for `ShareSDK3` in `Podfile`:

- ShareSDK ...

这个错误信息是说用了不一样的源,就是您命令后面有的没有加源,有的加错了,您看我以上那些怎么写的。

Rank: 1

主题:
帖子:
积分:
0
发表于 2016-12-29 10:05:07 |
LZ,你好 我这边换成同一个源好像依然这种情况 我把 后面那三个先删掉是可以更新的
[!] There are multiple dependencies with different sources for `ShareSDK3` in `Podfile`:

- ShareSDK3 (from `https://git.oschina.net/MobClub/ShareSDK-for-iOS-Spec.git`)
- ShareSDK3/ShareSDKPlatforms/QQ (from `https://git.oschina.net/MobClub/ShareSDK-for-iOS.git`)
- ShareSDK3/ShareSDKPlatforms/SinaWeibo (from `https://git.oschina.net/MobClub/ShareSDK-for-iOS.git`)
- ShareSDK3/ShareSDKPlatforms/WeChat (from `https://git.oschina.net/MobClub/ShareSDK-for-iOS.git`)

Rank: 5Rank: 5

主题:
帖子:
积分:
0
发表于 2016-12-29 10:20:24 |
您还是看看我们上面说的,再检查一下,如果可以了 那就行了

Rank: 1

主题:
帖子:
积分:
0
发表于 2017-1-5 14:59:04 |
这样用之后  每次都需要
Pre-downloading: `ShareSDK3` from `https://github.com/MobClub/ShareSDK-for-iOS-Spec.git`
> Git download
> Git download
     $ /usr/bin/git clone https://github.com/MobClub/ShareSDK-for-iOS-Spec.git
     /var/folders/gw/n_tsb9m97dl92jgmp19_c4mw0000gn/T/d20170105-20470-1vp4qvz
     --template= --single-branch --depth 1
     Cloning into '/var/folders/gw/n_tsb9m97dl92jgmp19_c4mw0000gn/T/d20170105-20470-1vp4qvz'...
这个难道不解决一下么
123下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

技术支持
免费咨询 | 24小时在线
快速回复 返回顶部 返回列表