来自github的Pod无法正常工作

Rém*_*rin 12 git github ios cocoapods podspec

我分叉了CBZSplashView,我想在我自己的项目中使用它.

为了确保问题不是来自我,我从头开始创建一个Xcode项目.

我的项目Podfile包含一行:

pod 'CBZSplashView', :git=> 'git@github.com:rvirin/CBZSplashView.git',  :branch => 'remy'
Run Code Online (Sandbox Code Playgroud)

当我跑步pod install或者pod update我有原始版本的吊舱 - 而不是我的前叉.

我做错了什么?

:git参数会覆盖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'
Run Code Online (Sandbox Code Playgroud)

任何帮助是欣赏:)

$ pod --version
0.33.1
Run Code Online (Sandbox Code Playgroud)

Dhr*_*ngh 2

您可以使用以下代码安装 Github 存储库以用作 CocoaPods 并将其粘贴到您的 Podfile 中:

 pod 'CBZSplashView', :git => 'https://github.com/rvi/CBZSplashView.git', :branch => 'master'
Run Code Online (Sandbox Code Playgroud)