gpt4 book ai didi

ios - 来自 github 的 Pod 不工作

转载 作者:IT王子 更新时间:2023-10-29 00:49:33 24 4
gpt4 key购买 nike

我 fork 了 CBZSplashView我想在我自己的项目中使用它。

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

我的项目 Podfile 包含一行:

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

当我运行 pod installpod update 时,我得到了 pod 的原始版本——不是我的 fork 。

我做错了什么?

:git参数overrides the source of the podspec .

我试图修改 podspec 以指示源文件现在在我的存储库中,但也没有用。

pod 更新日志 --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

最佳答案

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

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

关于ios - 来自 github 的 Pod 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25283349/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com