cocoapods - 无法将“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 要求使用 podspec 指定 pod 来描述其 Xcode 工作区集成。见https://guides.cocoapods.org/making/making-a-cocoapod.html
推荐阅读
- javascript - ReactJS在映射对象数组时传递父道具
- javascript - 我可以让这个媒体查询在我的 javascript 中工作吗?
- swiftui - 在 NavigationLink 之后,在 NavigationView 内、TabView 内显示 NavigationBar。SwiftUI
- typo3 - Typ3 v9.5中如何设置路由增强器
- python - 如何将对象类型转换为 datetime64?
- bash - 如何将预定值添加到脚本中?
- simulation - Anylogic DES-拆分队列以进行两个延迟(进程)?
- firebase - 使待处理的排队项目过期
- netsuite - 上传 SuiteScript 时出现 Netsuite 错误
- r - 在具有列表列的数据帧上使用 setdiff