首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法通过ResearchKit通过CocoaPods安装ResearchKit (ResearchKit已经存在)

无法通过ResearchKit通过CocoaPods安装ResearchKit (ResearchKit已经存在)
EN

Stack Overflow用户
提问于 2020-10-20 03:39:22
回答 1查看 230关注 0票数 1

我正在尝试安装ResearchKit以支持我正在开发的iOS应用程序项目,但是我在使用CocoaPods安装它时遇到了困难。尽管我尽力安装,但我的项目在其中一个文件中的import ResearchKit行上失败,错误指示找不到ResearchKit。

基本系统信息:

(11C504)

  • CocoaPods
  • MacOS 10.14.6
  • Xcode 11.3.1
  • 1.9.3

要安装CocoaPods,我在命令行上运行$ pod install命令。ResearchKit在我的Podfile中引用如下:

代码语言:javascript
复制
pod 'ResearchKit', '2.0.0'

运行$ pod install将产生以下结果:

代码语言:javascript
复制
Installing ResearchKit (2.0.0)

[!] Error installing ResearchKit
[!] /usr/bin/git clone https://github.com/ResearchKit/ResearchKit.git /var/folders/zg/v1h_8jdj5p77k3b208xfl_540000gn/T/d20201019-18654-1lebm6x --template= --single-branch --depth 1 --branch 2.0.0

Cloning into '/var/folders/zg/v1h_8jdj5p77k3b208xfl_540000gn/T/d20201019-18654-1lebm6x'...
Note: checking out 'b46a5f4d8350549918c8aae7d16b67dcb73fbff9'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'



[!] Automatically assigning platform `iOS` with version `13.1` on target `Master-Sample` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

但是,我确信ResearchKit存在于我的系统上,因为运行$ pod search ResearchKit会产生:

代码语言:javascript
复制
-> ResearchKit (2.0.0)
   ResearchKit is an open source software framework that makes it easy to create
   apps for medical research or for other research projects.
   pod 'ResearchKit', '~> 2.0.0'
   - Homepage: https://www.github.com/ResearchKit/ResearchKit
   - Source:   https://github.com/ResearchKit/ResearchKit.git
   - Versions: 2.0.0, 1.5.2, 1.5.0, 1.4.1, 1.3.1, 1.3.0, 1.2.1, 1.2, 1.1.2,
   1.0.0 [trunk repo]

对于为什么ResearchKit在执行$ pod install命令时失败和/或为什么如果它安装在我的系统上,我的项目就找不到它,有什么建议吗?

提前谢谢你!

EN

回答 1

Stack Overflow用户

发布于 2020-10-20 03:55:01

解决了-我需要安装git-lfs。(https://github.com/ResearchKit/ResearchKit/issues/1219)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64438117

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档