ios - Cocoapods 与 github fork 项目

标签 ios git github cocoapods git-fork

我第一次在github上fork了一个项目。我对项目进行了一些更改并提交到 github。

我还在我的 fork 上为 cocoapods 创建了一个新版本,请参阅新版本。我尝试了一些方法,但在我的另一个项目中使用我的 fork 没有任何效果。

我的 fork 项目网址: https://github.com/eflatunyazilim/Cluster

我尝试了这些方法:

1:

 pod 'Cluster', :git => 'https://github.com/eflatunyazilim/Cluster.git', :commit => 'c20fe29a9fdf4139951f51aa7e45423a4e86a799'

2:

pod 'Cluster', :git => 'https://github.com/eflatunyazilim/Cluster'

3:

pod 'Cluster', :git => 'https://github.com/eflatunyazilim/Cluster.git'

当我在终端上运行 pod installpod update 时,库项目仍然使用以前版本的项目。

Using Cluster (1.0.9)

Installing Cluster 1.0.9 (was 1.0.9)

最佳答案

尝试将 podspec 文件中的版本号更改为

s.version = '1.1'

关于ios - Cocoapods 与 github fork 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45798237/

相关文章:

ios - 在 uiwebviews 中滚动时空白

github - Github Enterprise 如何保护他们在虚拟机上交付的代码?

spring-boot - 如何在Heroku上的Docker构建之前执行gradle构建?

objective-c - iOS vsnprintf 使用 NSString 实现

ios - View 关闭后快速更新按钮文本

iphone - iOS 设备调试控制台长度

git - 索引有reflog吗?

git - 如何克隆损坏的 git 存储库

objective-c - 我如何制作 GIT 凭证助手?

git - Gerrit 与 Github