Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
537 views
in Technique[技术] by (71.8m points)

cocoapods - Can't add "MidiParser" pod to Podfile

I am trying to add this github project to my project as a pod: https://github.com/matsune/MidiParser

In my PodFile, I have tried

pod 'MidiParser'

and

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

but either time I get the error

Unable to find a specification for 'MidiParser'.

I have tried adding other pods like 'https://github.com/daltoniam/SwiftHTTP' just to see if they work, and they do. I notice there are multiple projects on GitHub called MidiParser, so maybe I need to distinguish between them somehow? The installation instructions in the MidiParser README only give instructions for Carthage. It says to add this line to the Cartfile:

github "matsune/MidiParser"

I also have also tried:

pod 'matsune/MidiParser'

I notice I can't find the project when I search for it here: https://cocoapods.org. Does that mean I simply can't install the project using Cocoapods, and that I have to do it manually?

Edit: I ended up using Carthage.

question from:https://stackoverflow.com/questions/65889026/cant-add-midiparser-pod-to-podfile

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

CocoaPods requires pods to be specified with a podspec to describe its Xcode workspace integration. See https://guides.cocoapods.org/making/making-a-cocoapod.html


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...