簡體   English   中英

無法通過 CocoaPods 安裝 ResearchKit(ResearchKit 已經存在)

[英]Cannot Install ResearchKit through CocoaPods (ResearchKit Already Present)

我正在嘗試安裝 ResearchKit 以支持我正在處理的 iOS 應用程序項目,但是我在使用 CocoaPods 安裝它時遇到了問題。 盡管我在安裝方面做了最好的嘗試,但我的項目在其中一個文件中的import ResearchKit行上失敗,並顯示錯誤,表明無法找到 ResearchKit。

基本系統信息:

  • macOS 10.14.6
  • Xcode 11.3.1 (11C504)
  • 可可豆 1.9.3

為了安裝 CocoaPods,我在命令行運行$ pod install命令。 ResearchKit 在我的 Podfile 中被引用如下:

pod 'ResearchKit', '2.0.0'

運行$ pod install產生以下結果:

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產生:

-> 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]

關於為什么在執行$ pod install命令期間 ResearchKit 安裝失敗的任何建議,和/或為什么,如果它安裝在我的系統上,我的項目無法找到它?

先感謝您! 😊

已解決 - 我需要安裝 git-lfs。 https://github.com/ResearchKit/ResearchKit/issues/1219 )。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM