我第一次在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 install
和 pod 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/