如何在 ios Swift 项目上安装 Parse SDK

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

我正在从事一个 Swift 项目,我尝试按照这些 instructions 安装 Parse Swift,但无法通过第一步。

我试过了

$ sudo gem install cocoapods

我一直收到这个错误:

ERROR:  Error installing cocoapods:
    The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.3. Try installing it with `gem install activesupport -v 6.1.7.3` and then running the current command again
    activesupport requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.
swift ruby parsing
1个回答
0
投票

我建议改用 Swift Package Manager。在 Xcode 中,转到文件 -> 添加包并将此 URL 粘贴到:

https://github.com/parse-community/Parse-Swift
.

如果出于某种原因,SPM 不是您的有效选项,请考虑通过 Homebrew 安装 CocoaPods,而不是使用

brew install cocoapods
,因为这也会安装 CocoaPods 需要的最新 Ruby 版本。

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