首页 > 自动安装 CocoaPods 一直是V2.5.3

自动安装 CocoaPods 一直是V2.5.3

我是使用的“自动安装 CocoaPods”,
但是请问为什么下载下来的是一直都是2.5.3的版本??

mactekiMacBook-Pro:JoyPicture mac$ pod update --verbose --no-repo-update
Update all pods

Analyzing dependencies

Finding Podfile changes
  - AVOSCloud
  - AVOSCloudSNS

Resolving dependencies of `Podfile`
Resolving dependencies for target `Pods' (iOS 6.0)
  - AVOSCloud
  - AVOSCloudSNS
    - AVOSCloud

Comparing resolved specification to the sandbox manifest
  - AVOSCloud
  - AVOSCloudSNS

Downloading dependencies

-> Using AVOSCloud (2.5.3)

-> Using AVOSCloudSNS (2.5.3)
  - Running pre install hooks

Generating Pods project
  - Creating Pods project
  - Adding source files to Pods project
  - Adding frameworks to Pods project
  - Adding libraries to Pods project
  - Adding resources to Pods project
  - Linking headers
  - Installing libraries
    - Installing target `Pods-AVOSCloud` iOS 6.0
      - Adding Build files
      - Adding resource bundles to Pods project
      - Generating public xcconfig file at `Pods/Pods-AVOSCloud.xcconfig`
      - Generating private xcconfig file at
      `Pods/Pods-AVOSCloud-Private.xcconfig`
      - Generating prefix header at `Pods/Pods-AVOSCloud-prefix.pch`
      - Generating dummy source file at `Pods/Pods-AVOSCloud-dummy.m`
    - Installing target `Pods-AVOSCloudSNS` iOS 6.0
      - Adding Build files
      - Adding resource bundles to Pods project
      - Generating public xcconfig file at `Pods/Pods-AVOSCloudSNS.xcconfig`
      - Generating private xcconfig file at
      `Pods/Pods-AVOSCloudSNS-Private.xcconfig`
      - Generating prefix header at `Pods/Pods-AVOSCloudSNS-prefix.pch`
      - Generating dummy source file at `Pods/Pods-AVOSCloudSNS-dummy.m`
    - Installing target `Pods` iOS 6.0
      - Generating xcconfig file at `Pods/Pods.xcconfig`
      - Generating target environment header at `Pods/Pods-environment.h`
      - Generating copy resources script at `Pods/Pods-resources.sh`
      - Generating acknowledgements at `Pods/Pods-acknowledgements.plist`
      - Generating acknowledgements at `Pods/Pods-acknowledgements.markdown`
      - Generating dummy source file at `Pods/Pods-dummy.m`
  - Running post install hooks
  - Writing Xcode project file to `Pods/Pods.xcodeproj`
  - Writing Lockfile in `Podfile.lock`
  - Writing Manifest in `Pods/Manifest.lock`

Integrating client project
mactekiMacBook-Pro:JoyPicture mac$ 

pod 'AVOSCloud'
pod 'AVOSCloudSNS'
首先我的Podfile里面的文字是上面那样的,后面没有跟版本号。
其次,就算按照“kid143”认为我的pod 'AVOSCloud'后面有这么一行'~>2.5.3', 但是我使用的命令是“pod update --verbose --no-repo-update”,或者“pod update”,它会自动升级到AVOSCloud的最新版本。我用的不是“pod setup”。
再次,我已经升级到ruby最新的版本2.4.1, 和cocoapods version:0.33.1;
最后,通过命令“pod search AVOSCloud”查询AVOSCloud,也只看到最新是2.5.3,如果有什么疑问,你们自己可以试试啊? 我使用cocoapods也不长,也就一年多,但是用同样的方法能升级其他的第三方库,如SDImageCache, 但是AVOSCloud却不行,那有请“kid143”根据这一行pod 'AVOSCloud', '~>2.6.4',升级试试呢?或者pod search AVOSCloud在自己的电脑上边查查呢?还是先检查一下有没有上传新版本吧。

** mactekiMacBook-Pro:JoyPicture mac$ pod search AVOSCloud
-> AVOSCloud (2.5.3)
AVOS Cloud iOS SDK for mobile backend.
pod 'AVOSCloud', '~> 2.5.3'
- Homepage: http://avoscloud.com
- Source:
https://download.avoscloud.com/sdk/iOS/release-v2.5.3/AVOSCloud.framework.zip
- Versions: 2.5.3, 2.5.2, 2.5.1, 2.5.0, 2.4.1, 2.4.0, 2.3.2, 2.3.0, 2.2.1,
2.2.0, 2.1.2, 2.1.1, 2.1.0, 2.0.2, 2.0.0, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0,
1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.2.beta, 1.3.1, 1.3.0, 1.2.0, 1.2.0.beta,
1.1.0, 1.0.0 [master repo]**


兄弟,你之前没用过CocoaPods?使用CocoaPods管理依赖的话,工程文件夹下有一个名为“Podfile”的文件,用普通的文本编辑器即可打开。根据你的情况里面应该有这么一行

pod "AVOSCloud", "~> 2.5.3"

上面那一行就是你的依赖信息,版本号就是后面那部分。改成你想要的就行。另外,CocoaPods的目录更新也是需要时间的,你得首先更新pods的list,然后才能获取到最新的版本。具体情况请参考CocoaPods的用法,也可以联系AVOS的客服。

【热门文章】
【热门文章】