具有 github 个分叉项目的 Cocoapods
Cocoapods with github forked projects
我在 github 第一次分叉了一个项目。我对项目进行了一些更改并提交给 github.
我还在我的 fork 上为 cocoapods 创建了一个新版本,查看新版本。我尝试了一些方法,但在我的另一个项目中使用我的叉子没有任何效果。
我的分叉项目url:
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'
我在 github 第一次分叉了一个项目。我对项目进行了一些更改并提交给 github.
我还在我的 fork 上为 cocoapods 创建了一个新版本,查看新版本。我尝试了一些方法,但在我的另一个项目中使用我的叉子没有任何效果。
我的分叉项目url: 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'