首页 > 解决方案 > 无法将“MidiParser”pod 添加到 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'.

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

github "matsune/MidiParser"

我也试过:

pod 'matsune/MidiParser'

我注意到当我在这里搜索时找不到该项目:https ://cocoapods.org 。这是否意味着我根本无法使用 Cocoapods 安装项目,而我必须手动安装?

编辑:我最终使用了迦太基。

标签: cocoapods

解决方案


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


推荐阅读