Pod react-native-image-crop-picker在基于M1的mac中失败

csga3l58  于 6个月前  发布在  React
关注(0)|答案(1)|浏览(66)

我需要一个多图像拾取器,所以我找到了react-native-image-crop-picker lib并安装了它。但是当我使用npx pod-install或在ios目录中运行pod install时,它显示了以下错误:

[!] Error installing TOCropViewController
[!] /usr/bin/git clone https://github.com/TimOliver/TOCropViewController.git /var/folders/dh/mnrtx44j2813tnj3kj_rngvw0000gn/T/d20231114-5160-frh25m --template= --single-branch --depth 1 --branch 2.6.1

Cloning into '/var/folders/dh/mnrtx44j2813tnj3kj_rngvw0000gn/T/d20231114-5160-frh25m'...
fatal: unable to access 'https://github.com/TimOliver/TOCropViewController.git/': Failed to connect to github.com port 443 after 75029 ms: Couldn't connect to server

Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: Error installing TOCropViewController
[!] /usr/bin/git clone https://github.com/TimOliver/TOCropViewController.git /var/folders/dh/mnrtx44j2813tnj3kj_rngvw0000gn/T/d20231114-5160-frh25m --template= --single-branch --depth 1 --branch 2.6.1

Cloning into '/var/folders/dh/mnrtx44j2813tnj3kj_rngvw0000gn/T/d20231114-5160-frh25m'...
fatal: unable to access 'https://github.com/TimOliver/TOCropViewController.git/': Failed to connect to github.com port 443 after 75029 ms: Couldn't connect to server

字符串
我试着使用pod install和npx pod-install,它失败了。我想这意味着我可以通过代理或网络背后的github网站。有人遇到和我一样的问题吗?它有任何解决方案,谢谢。:)

06odsfpq

06odsfpq1#

我找到了正确的解决方案,它需要在xcode中配置一些东西。
https://www.jianshu.com/p/977bc5eea1b1

相关问题