查看: 904|回复: 10

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

[复制链接]

Rank: 5Rank: 5

主题:
帖子:
积分:
0

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

[复制链接]
904 10 | 发表于 2016-12-26 15:32:32 |阅读模式 | |
本帖最后由 刘芳丽 于 2016-12-28 15:47 编辑

由于pod升级的原因,目前3.5.2版本之后,添加命令行需要改进,目前我们开了几个CocoaPods国内以及国外ShareSDK的下载源:
这些国外源的作用:解决国内使用CocoaPods下载ShareSDK觉得久的用户
ShareSDK关于CocoaPods源的说明:
只使用ShareSDK的用户,CocoaPods本身的或以下的不含IDFA版本的源都适用。
如果同时使用了mob.com平台的SMSSDK,一定要用IDFA版本的源。

国内服务器的源:
不含IDFA版本的源:https://git.oschina.net/MobClub/ShareSDK-for-iOS.git
IDFA版本的源:https://git.oschina.net/MobClub/ShareSDK-for-iOS-Spec.git


国外服务器的源:
不含IDFA版本的源:https://github.com/MobClub/ShareSDK3.x-for-iOS.git
IDFA版本的源:https://github.com/MobClub/ShareSDK-for-iOS-Spec.git


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

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



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

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


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

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


复制代码

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

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



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

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


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

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

  28. #SMS短信验证
  29. 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'...
这个难道不解决一下么
12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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