看起来这很有效:
pod update JTModels
我有两个项目,想要在它们之间共享一些模型。我在这里创建了一个示例项目:
https://github.com/trestles/JTModels
我有一个包含以下Podfile的示例项目:
platform :ios, '7.0'
pod 'JTModels', :git => 'https://github.com/trestles/JTModels.git'
问题是我将podspec中的版本号更改为0.0.5但是当我在我的示例中运行pod update时,它保持在0.0.4。删除Podfile.lock有效,但据我所知,不应该如何处理。
Mon Jan 26$ pod update
Update all pods
Analyzing dependencies
CocoaPods 0.36.0.beta.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.
Pre-downloading: `JTModels` from `https://github.com/trestles/JTModels.git`, commit `12ad2cc2912d69baed6898e11b78d54c52102ba5`
Downloading dependencies
Installing JTModels 0.0.2 (was 0.0.2)
Generating Pods project
Integrating client project
Mon Jan 26$ less Podfile
我做错了什么?我尝试了pod outdated
但结果相同。