14

I forked CBZSplashView and I'd like to use it in my own project.

To be sure that the problem doesn't come from me, I create a Xcode project from scratch.

My project Podfile contains one line :

pod 'CBZSplashView', :git=> 'git@github.com:rvirin/CBZSplashView.git',  :branch => 'remy'

When I run pod install or pod update I've got the original version of the pod - not my fork.

What I'm doing wrong?

The :git parameter overrides the source of the podspec.

I tried to modify the podspec to indicate that the source files are now on my repository, but didn't work either.

Log of 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'

Any help is appreciate :)

$ pod --version
0.33.1
mgarciaisaia
  • 14,521
  • 8
  • 57
  • 81
Rémy Virin
  • 3,379
  • 23
  • 42
  • Can you try this without the `:branch` specification to see if it pulls the master branch of your fork? – Keith Smiley Aug 13 '14 at 16:09
  • Hi @KeithSmiley, thanks for your help. I tried and it didn't worked. so I tried branch, commit, tag, nothing worked ! Moreover, in the log of the pod update, everything appears to work well. See the updated of my question. If you have any thought feel free to tell, this is really strange. – Rémy Virin Aug 14 '14 at 14:47
  • Hi @RémyVirin, did you ever get to the bottom of this? – Taz Sep 17 '15 at 09:43
  • Hi @Taz, I think you need to clear your Podfile.lock. Do you still have the same problem ? – Rémy Virin Sep 22 '15 at 12:53
  • 1
    Managed to solve it using tags. The issue with mine seemed to be the fact that I was using a local podspec with the :podspec option. Apparently, using this and the branch option doesn't seem to work. – Taz Oct 01 '15 at 14:32
  • I don't see any [`remy` branch](https://github.com/rvi/CBZSplashView/tree/remy) nor a [`1.0.1` tag](https://github.com/rvi/CBZSplashView/tree/1.0.1) in your repository. – mgarciaisaia Nov 20 '15 at 01:24

1 Answers1

2

You can use following code to install Github repository to use as CocoaPods and paste this in your Podfile :

 pod 'CBZSplashView', :git => 'https://github.com/rvi/CBZSplashView.git', :branch => 'master'