简体   繁体   English

通过 cocoapods 在终端中安装 Realm 时出错

[英]Error installing Realm in Terminal through cocoapods

I need help trying to fix this error when installing Realm through CocoaPods.通过 CocoaPods 安装 Realm 时,我需要帮助尝试修复此错误。 Has anyone had this problem?有没有人遇到过这个问题? Picture is in the link below.图片在下面的链接中。 Thanks.谢谢。

Terminal终端

Seems like your connection is unstable, I would try to change my network to wired and try again好像您的连接不稳定,我会尝试将我的网络更改为有线并重试

The git clone command failed git clone命令失败

Make sure you have an updated cocoapods:确保你有一个更新的 cocoapods:

$ [sudo] gem install cocoapods

Run pod repo update to make CocoaPods aware of the latest available Realm versions.运行pod repo update使 CocoaPods 知道最新的可用 Realm 版本。

In your Podfile, add use_frameworks!在您的 Podfile 中, add use_frameworks! and pod 'RealmSwift' to your main and test targets.pod 'RealmSwift'到你的主要和测试目标。

From the command line, run pod install .从命令行运行pod install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM