Unity中的External Dependency Manager安装Cocoapods成功但找不到pod工具

问题描述 投票:0回答:1

我尝试使用 Unity 在 iO 上进行构建。但 Branch.io 和(xCode 中的 Header.h)文件有问题。 要解决依赖关系,建议使用外部依赖管理器。它运行 cocoapods 安装并给出以下错误:

'gem install cocoapods --user-install' succeeded but the pod tool cannot be found.

It will not be possible to install Cocoapods in the generated Xcode project which will result in link errors when building your application.

我的员工 Mac Apple M1 Pro。 Unity 2022.3.10f1:

 ~ % pod --version
1.13.0
 ~ % gem --version
3.4.10
 ~ % ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]

如果有任何有用的建议,我将不胜感激!

我在$PATH中设置了环境变量,甚至通过终端启动了Unity,这在一定程度上有所帮助,但错误仍然存在,并且项目构建时也有错误。

ruby unity-game-engine build cocoapods iso
1个回答
0
投票

我觉得还可以。您只需在构建文件夹中打开终端,然后输入以下内容:

pod install --repo-update

© www.soinside.com 2019 - 2024. All rights reserved.