我分叉CBZSplashView,我想在我自己的项目中使用它。
为了确保问题不是来自我,我从头开始创建一个Xcode项目。
我的项目Podfile包含一行:
pod 'CBZSplashView', :git=> 'git@github.com:rvirin/CBZSplashView.git', :branch => 'remy'
当我运行pod install
或pod update
时,我已经获得了pod的原始版本 - 而不是我的分叉。
我做错了什么?
:git
参数overrides the source of the podspec。
我尝试修改podspec以指示源文件现在位于我的存储库中,但也不起作用。
pod update --verbose
的日志:
-> Pre-downloading: `CBZSplashView` from `git@github.com:rvirin/CBZSplashView.git`, tag `1.0.1`
> GitHub download
$ /usr/bin/git config core.bare
true
$ /usr/bin/git config core.bare
true
> Updating cache git repo (/Users/rvi/Library/Caches/CocoaPods/GitHub/8520768890e6fa2ea91b3d9e8bb9f2afbb31ab60)
$ /usr/bin/git remote update
Fetching origin
> Cloning to Pods folder
$ /usr/bin/git clone /Users/rvi/Library/Caches/CocoaPods/GitHub/8520768890e6fa2ea91b3d9e8bb9f2afbb31ab60 /Users/rvi/Devs/Lima/iOS/Lima/Pods/CBZSplashView
Cloning into '/Users/rvi/Devs/Lima/iOS/Lima/Pods/CBZSplashView'...
done.
$ /usr/bin/git fetch origin tags/1.0.1 2>&1
From /Users/rvi/Library/Caches/CocoaPods/GitHub/8520768890e6fa2ea91b3d9e8bb9f2afbb31ab60
* tag 1.0.1 -> FETCH_HEAD
$ /usr/bin/git reset --hard FETCH_HEAD
HEAD is now at 56d4dc7 change branch
$ /usr/bin/git checkout -b activated-pod-commit 2>&1
Switched to a new branch 'activated-pod-commit'
任何帮助都表示赞赏:)
$ pod --version
0.33.1
答案 0 :(得分:1)
您可以使用以下代码安装Github存储库以用作CocoaPods并将其粘贴到您的Podfile中:
pod 'CBZSplashView', :git => 'https://github.com/rvi/CBZSplashView.git', :branch => 'master'