MIDIKit icon indicating copy to clipboard operation
MIDIKit copied to clipboard

Feature: cocoapods

Open arshiacont opened this issue 7 months ago • 0 comments

Enables distribution of MIDIKit using Cocoapods.

Before official distribution on Cocoapods and for building on XCode from this repo, you must follow two steps in your XCode Project's Podfile:

  1. Add this repo as a source (since the podspecs do not live on Cocoapods distribution yet)
  2. Add each dependency to your podfile. For example:
#pod 'TimecodeKit', :git => 'https://github.com/arshiacont/TimecodeKit.git', :branch => 'feature/cocoapods'
  pod 'MIDIKitInternals', :git => 'https://github.com/arshiacont/MIDIKit.git', :branch => 'feature/cocoapods2'
  pod 'MIDIKitCore', :git => 'https://github.com/arshiacont/MIDIKit.git', :branch => 'feature/cocoapods2'
  pod 'MIDIKitIO', :git => 'https://github.com/arshiacont/MIDIKit.git', :branch => 'feature/cocoapods2'

then run pod install and open the workspace and compile!

The project as is, builds when following the two points above.

Suggestions A. Once merged on MIDIKit main branch Cocoapod users can simply add pods by changing the Github address above! B. To include only (example) pod MIDIKitIO without including other dependencies, all podspecs should be validated and submitted. This requires:

  • running pod spec lint on each podspec
  • using Semantic Versioning

If there is not much demand for Cocoapod support we might stay on step (A)

arshiacont avatar Nov 15 '23 15:11 arshiacont