无法确定 URL 的存储库类型(gitlab + Mac)

Ole*_*leg 2 xcode cocoapods

我正在尝试在项目目录中执行“make gen”命令,但出现错误:\n"\xd0\xa1ouldn 无法确定 URL 的存储库类型:https://gitlab.myproject/podspecs.git (): 在此上下文中不允许映射值... 柱子 ...”

\n

我一直在这里寻找并谷歌搜索,但没有成功。仅发现 pod 和 YAML 存在类似错误,但它们是特定的。\n我也检查了我的 Podfile,它具有源“https://gitlab.myproject/podspecs.git”,因此可以

\n

Ole*_*leg 6

通过在终端中使用以下命令添加存储库来解决问题:

bundle exec pod repo add https://gitlab.myproject/podspecs.git
Run Code Online (Sandbox Code Playgroud)


J.A*_*rji 6

pod repo add [名称 podSpecs] [URL Podspecs]

例子:

pod repo add Specs http://igit.yycorp.com/specs.git
Run Code Online (Sandbox Code Playgroud)