无法将 "MidiParser" 个 pod 添加到 Podfile

Can't add "MidiParser" pod to Podfile

我正在尝试将此 github 项目作为 pod 添加到我的项目中:https://github.com/matsune/MidiParser

在我的 PodFile 里,我试过了

pod 'MidiParser'

pod 'MidiParser', :git => 'https://github.com/matsune/MidiParser.git'

但每次我都收到错误

Unable to find a specification for 'MidiParser'.

我试过添加其他 pods,比如 'https://github.com/daltoniam/SwiftHTTP',只是为了看看它们是否有效,它们确实有效。我注意到 GitHub 上有多个名为 MidiParser 的项目,所以也许我需要以某种方式区分它们? MidiParser README 中的安装说明仅给出了 Carthage 的说明。它说要将此行添加到 Cartfile:

github "matsune/MidiParser"

我也试过:

pod 'matsune/MidiParser'

我发现在此处搜索项目时找不到该项目:https://cocoapods.org。 这是否意味着我根本无法使用 Cocoa 安装项目pods,而我必须手动安装?

编辑:我最终使用了 Carthage。

CocoaPods 需要使用 podspec 指定 pods 来描述其 Xcode 工作区集成。参见 https://guides.cocoapods.org/making/making-a-cocoapod.html