-
Notifications
You must be signed in to change notification settings - Fork 95
Installing MIKMIDI
There are several ways to add MIKMIDI to your project. Choose whichever method you're most comfortable with below. The methods are listed roughly in order of my own preference.
Xcode sub-projects allow your project to use and build MIKMIDI as an implicit dependency.
-
Add MIKMIDI to your project as a Git submodule:
$ cd MyXcodeProjectFolder $ git submodule add https://github.com/mixedinkey-opensource/MIKMIDI.git Frameworks/MIKMIDI $ git commit -m "Added MIKMIDI submodule"
-
Drag
Frameworks/MIKMIDI/Framework/MIKMIDI.xcodeproj
into your existing Xcode project -
Navigate to your project's settings, then select the target you wish to add MIKMIDI to
-
Navigate to Build Phases and expand the Link Binary With Libraries section
-
Click the + and find MIKMIDI.framework.
-
You should now be able to add
#import <MIKMIDI/MIKMIDI.h>
(Objective-C) orimport MIKMIDI
(Swift) to any of your target's source files and begin using MIKMIDI.
Using Carthage, you can easily add MIKMIDI to your project as a pre-built framework. In order to use this method, you must have Carthage installed.
- Create a
Cartfile
for your project. - Add the following line to your Cartfile:
github "mixedinkey-opensource/MIKMIDI"
- In your project directory, run
carthage update
- Find MIKMIDI.framework in
Carthage/Build/Mac
or 'Carthage/Build/iOS'. - Navigate to your project's settings, then select the target you wish to add MIKMIDI to.
- On the General tab, drag MIKMIDI.framework from Finder into the "Embedded Binaries" section.
- You should now be able to add
#import <MIKMIDI/MIKMIDI.h>
(Objective-C) orimport MIKMIDI
(Swift) to any of your target's source files and begin using MIKMIDI.
You can use CocoaPods to add MIKMIDI to your project. In order to use this method, you must have CocoaPods installed.
-
Add the following line to your
Podfile
:pod 'MIKMIDI'
-
In your project directory, run
pod update
-
You should now be able to add
#import <MIKMIDI/MIKMIDI.h>
, etc. to any of your target's source files and begin using MIKMIDI.
If you don't want to use CocoaPods or use an Xcode subproject, you can add MIKMIDI's source directly to your project.
-
Add MIKMIDI to your project as a Git submodule:
$ cd MyXcodeProjectFolder $ git submodule add https://github.com/mixedinkey-opensource/MIKMIDI.git ThirdParty/MIKMIDI $ git commit -m "Added MIKMIDI submodule"
-
Drag
ThirdParty/MIKMIDI/Source
into your Xcode project, and ensure that you add it to the targets that you wish to use it with. -
You should now be able to add
#import "MIKMIDI.h"
, etc. to any of your target's source files and begin using MIKMIDI.
Note Please be aware that if you've set Xcode's Link Frameworks Automatically to No then you will need to manually link your target with CoreMIDI.framework, AudioUnit.framework, AudioToolbox.framework. Additionally, in iOS projects, regardless of this setting, you will need to link with libxml.dylib.