ofxMidiめっちゃエラー出た時の対処メモ

##概要
こんなエラーが出たと言われたので解決したのでメモ

```
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/QuickTime.framework/QuickTime.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/QuickTime.framework/QuickTime.tbd
Undefined symbols for architecture x86_64:
  "_MIDIGetDestination", referenced from:
      -[PGMidi scanExistingDevices] in PGMidi.o
      -[PGMidi sendPacketList:] in PGMidi.o
  "_MIDIPortDisconnectSource", referenced from:
      -[PGMidi disconnectSource:] in PGMidi.o
  "_MIDIObjectSetIntegerProperty", referenced from:
      -[PGMidi setVirtualDestinationEnabled:] in PGMidi.o
  "_kMIDIPropertyUniqueID", referenced from:
      -[PGMidi setVirtualDestinationEnabled:] in PGMidi.o
  "_MIDIPacketListInit", referenced from:
      -[PGMidiDestination sendBytes:size:] in PGMidi.o
      -[PGMidi sendBytes:size:] in PGMidi.o
  "_MIDIGetNumberOfDestinations", referenced from:
      -[PGMidi scanExistingDevices] in PGMidi.o
      -[PGMidi sendPacketList:] in PGMidi.o
  "_MIDIObjectGetProperties", referenced from:
      IsNetworkSession(unsigned int) in PGMidi.o
  "_kMIDIPropertyConnectionUniqueID", referenced from:
      ConnectedEndpointName(unsigned int) in RtMidi.o
  "_MIDIPacketListAdd", referenced from:
      -[PGMidiDestination sendBytes:size:] in PGMidi.o
      -[PGMidi sendBytes:size:] in PGMidi.o
  "_MIDIPortConnectSource", referenced from:
      MidiInCore::openPort(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in RtMidi.o
      -[PGMidi connectSource:] in PGMidi.o
  "_MIDIObjectFindByUniqueID", referenced from:
      ConnectedEndpointName(unsigned int) in RtMidi.o
  "_MIDIEndpointDispose", referenced from:
      MidiInCore::~MidiInCore() in RtMidi.o
      -[PGMidi setVirtualSourceEnabled:] in PGMidi.o
      -[PGMidi setVirtualDestinationEnabled:] in PGMidi.o
  "_MIDIEndpointGetEntity", referenced from:
      EndpointName(unsigned int, bool) in RtMidi.o
      IsNetworkSession(unsigned int) in PGMidi.o
  "_MIDIEntityGetDevice", referenced from:
      EndpointName(unsigned int, bool) in RtMidi.o
  "_MIDIFlushOutput", referenced from:
      -[PGMidiDestination flushOutput] in PGMidi.o
  "_kMIDIPropertyName", referenced from:
      EndpointName(unsigned int, bool) in RtMidi.o
      ConnectedEndpointName(unsigned int) in RtMidi.o
  "_MIDIObjectGetStringProperty", referenced from:
      EndpointName(unsigned int, bool) in RtMidi.o
      ConnectedEndpointName(unsigned int) in RtMidi.o
      NameOfEndpoint(unsigned int) in PGMidi.o
  "_MIDIClientCreate", referenced from:
      MidiInCore::initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in RtMidi.o
      -[PGMidi init] in PGMidi.o
  "_MIDIDestinationCreate", referenced from:
      MidiInCore::openVirtualPort(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in RtMidi.o
      -[PGMidi setVirtualDestinationEnabled:] in PGMidi.o
  "_MIDIDeviceGetNumberOfEntities", referenced from:
      EndpointName(unsigned int, bool) in RtMidi.o
  "_MIDISend", referenced from:
      -[PGMidiDestination sendPacketList:] in PGMidi.o
      -[PGMidi sendPacketList:] in PGMidi.o
  "_MIDISourceCreate", referenced from:
      -[PGMidi setVirtualSourceEnabled:] in PGMidi.o
  "_MIDIGetNumberOfSources", referenced from:
      MidiInCore::openPort(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in RtMidi.o
      MidiInCore::getPortCount() in RtMidi.o
      MidiInCore::getPortName(unsigned int) in RtMidi.o
      -[PGMidi scanExistingDevices] in PGMidi.o
  "_MIDIInputPortCreate", referenced from:
      MidiInCore::openPort(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in RtMidi.o
      -[PGMidi init] in PGMidi.o
  "_MIDIPortDispose", referenced from:
      MidiInCore::openPort(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in RtMidi.o
      MidiInCore::closePort() in RtMidi.o
      -[PGMidi dealloc] in PGMidi.o
  "_MIDIObjectGetIntegerProperty", referenced from:
      -[PGMidi setVirtualDestinationEnabled:] in PGMidi.o
  "_MIDIReceived", referenced from:
      -[PGMidiVirtualSourceDestination sendPacketList:] in PGMidi.o
  "_kMIDIPropertyDisplayName", referenced from:
      NameOfEndpoint(unsigned int) in PGMidi.o
  "_MIDIGetSource", referenced from:
      MidiInCore::openPort(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in RtMidi.o
      MidiInCore::getPortName(unsigned int) in RtMidi.o
      -[PGMidi scanExistingDevices] in PGMidi.o
  "_MIDIOutputPortCreate", referenced from:
      -[PGMidi init] in PGMidi.o
  "_MIDIObjectGetDataProperty", referenced from:
      ConnectedEndpointName(unsigned int) in RtMidi.o
  "_MIDIClientDispose", referenced from:
      MidiInCore::~MidiInCore() in RtMidi.o
      MidiInCore::openPort(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in RtMidi.o
      -[PGMidi dealloc] in PGMidi.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

![スクリーンショット 2016-08-06 18.35.55.png](https://qiita-image-store.s3.amazonaws.com/0/56510/4d125879-6bff-7847-5713-8affd4823207.png)

##解決策

こんな現状だった。`Linked Frameworks and Libraries`に`CoreMIDI.framework`が追加されていないので追加する

![honban.xcodeproj.png](https://qiita-image-store.s3.amazonaws.com/0/56510/cfd84f9e-6e6a-29e7-e6c9-f3411f6cf467.png)


![honban.xcodeproj-1.png](https://qiita-image-store.s3.amazonaws.com/0/56510/b1452d76-917d-ef23-1573-1c67a13e5d2b.png)

これで全部エラーが消えて実行できる。