Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 来自github的Pod不工作_Ios_Git_Github_Cocoapods_Podspec - Fatal编程技术网

Ios 来自github的Pod不工作

Ios 来自github的Pod不工作,ios,git,github,cocoapods,podspec,Ios,Git,Github,Cocoapods,Podspec,我分叉了,我想在我自己的项目中使用它 为了确保问题不是我造成的,我从头创建了一个Xcode项目 我的项目文件包含一行: pod 'CBZSplashView', :git=> 'git@github.com:rvirin/CBZSplashView.git', :branch => 'remy' 当我运行pod install或pod update时,我得到的是pod的原始版本,而不是我的fork 我做错了什么 :git参数 我试图修改podspec,以表明源文件现在在我的存储库

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

为了确保问题不是我造成的,我从头创建了一个Xcode项目

我的项目文件包含一行:

pod 'CBZSplashView', :git=> 'git@github.com:rvirin/CBZSplashView.git',  :branch => 'remy'
当我运行
pod install
pod update
时,我得到的是pod的原始版本,而不是我的fork

我做错了什么

:git
参数

我试图修改podspec,以表明源文件现在在我的存储库中,但也不起作用

pod更新日志——详细的

-> 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'
任何帮助都非常感谢:)


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

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

您是否可以在没有
:branch
规范的情况下尝试此操作,以查看它是否拉动了分叉的主分支?您好@KeithSmiley,谢谢您的帮助。我试过了,但没有成功。所以我尝试了分支、提交、标记,但没有任何效果!此外,在pod更新日志中,一切似乎都运行良好。请参阅我的问题的更新部分。如果你有任何想法,请随意告诉我,这真的很奇怪。嗨@RémyVirin,你知道这件事的真相吗?嗨@Taz,我想你需要清除你的Podfile.lock。你还有同样的问题吗?设法用标签解决了。我的问题似乎是,我使用的是带有:podspec选项的本地podspec。显然,使用此选项和分支选项似乎不起作用。
 pod 'CBZSplashView', :git => 'https://github.com/rvi/CBZSplashView.git', :branch => 'master'