{"action":"created","issue":{"url":"https://api.github.com/repos/Air-Craft/MIDIFish/issues/1","labels_url":"https://api.github.com/repos/Air-Craft/MIDIFish/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Air-Craft/MIDIFish/issues/1/comments","events_url":"https://api.github.com/repos/Air-Craft/MIDIFish/issues/1/events","html_url":"https://github.com/Air-Craft/MIDIFish/issues/1","id":116313007,"number":1,"title":"Could not create Virtual Source with name...","user":{"login":"alexbuga","id":2833805,"avatar_url":"https://avatars.githubusercontent.com/u/2833805?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbuga","html_url":"https://github.com/alexbuga","followers_url":"https://api.github.com/users/alexbuga/followers","following_url":"https://api.github.com/users/alexbuga/following{/other_user}","gists_url":"https://api.github.com/users/alexbuga/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbuga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbuga/subscriptions","organizations_url":"https://api.github.com/users/alexbuga/orgs","repos_url":"https://api.github.com/users/alexbuga/repos","events_url":"https://api.github.com/users/alexbuga/events{/privacy}","received_events_url":"https://api.github.com/users/alexbuga/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-11T11:18:28Z","updated_at":"2015-11-18T17:35:39Z","closed_at":"2015-11-12T08:34:48Z","body":"I have the following code and when I open the app I get this error:\r\n\"Terminating app due to uncaught exception 'MFNonFatalException', reason: \"Could not create Virtual Source with name ABMidiTest\"\r\n\r\n<code>\r\nclass ViewController: UIViewController {\r\n\r\n  var midiSession: MFMIDISession!\r\n\r\n  override func viewDidLoad() {\r\n    super.viewDidLoad()\r\n\r\n    midiSession = MFMIDISession(name: \"ABMidiTest\")\r\n    midiSession.networkEnabled = true\r\n    midiSession.restorePreviousConnectionStates = true\r\n    midiSession.autoEnableDestinations = true\r\n    midiSession.channel = 1\r\n    midiSession.createVirtualSourceWithName(midiSession.name)\r\n  }\r\n\r\n  @IBAction func didPressNote() {\r\n    midiSession.sendNoteOn(64, velocity: 120)\r\n  }\r\n}\r\n</code>\r\n"},"comment":{"url":"https://api.github.com/repos/Air-Craft/MIDIFish/issues/comments/157791230","html_url":"https://github.com/Air-Craft/MIDIFish/issues/1#issuecomment-157791230","issue_url":"https://api.github.com/repos/Air-Craft/MIDIFish/issues/1","id":157791230,"user":{"login":"alexbuga","id":2833805,"avatar_url":"https://avatars.githubusercontent.com/u/2833805?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbuga","html_url":"https://github.com/alexbuga","followers_url":"https://api.github.com/users/alexbuga/followers","following_url":"https://api.github.com/users/alexbuga/following{/other_user}","gists_url":"https://api.github.com/users/alexbuga/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbuga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbuga/subscriptions","organizations_url":"https://api.github.com/users/alexbuga/orgs","repos_url":"https://api.github.com/users/alexbuga/repos","events_url":"https://api.github.com/users/alexbuga/events{/privacy}","received_events_url":"https://api.github.com/users/alexbuga/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T17:35:39Z","updated_at":"2015-11-18T17:35:39Z","body":"I connect the iPhone to the Mac via Audio Midi Utility\nIt shows up and I click connect.\nShould I have a connection panel in the App also where I need to connect to\nthe Mac? I set autoEnable to true so I thought it should do it\nautomatically.\nI'll try the delegate methods but yeah the problem might be with the way El\nCapitan deals with that.\nThanks.\nOn Wed, 18 Nov 2015 at 19:19, Hari Karam Singh <notifications@github.com>\nwrote:\n\n> Hey Alex,\n>\n> Sorry for the delay. Does your mac show up in the network scan.\n> networkConnections property after waiting a while or use the delegate\n> methods to catch them.\n>\n> I've noticed discoverability has been a bit broken since iOS9 and El\n> Capitan. I'm working to get Apple to take a look. Usually its resolved by\n> cycling wifi on/off on OSX or rebooting the phone or the machine.\n>\n> Let me know how you get on...\n>\n> Gratefully,\n> Hari Karam Singh\n>\n>\n>\n>\n> <\n> http://air-craft.co/?utm_source=emailsig-ac1-logo&utm_medium=email-signature&utm_campaign=air-craft-general\n> >\n> The future of musical artistry...\n>\n> *Watch the demo (~1m) »*\n> <\n> http://air-craft.co/?utm_source=emailsig-ac1-video&utm_medium=email-signature&utm_campaign=air-craft-general\n> >\n>\n> http://air-craft.co\n> <\n> http://air-craft.co/?utm_source=emailsig-ac1-website&utm_medium=email-signature&utm_campaign=air-craft-general\n> >\n> · 0779 055 6418 · London SE1\n>\n>\n> On 12 November 2015 at 12:20, alexbuga <notifications@github.com> wrote:\n>\n> > I do have a question though. It connects via Wifi to my Mac but it\n> doesn't\n> > send MIDI. It just sends inter app on my device. Am I missing something?\n> > Thank you.\n> >\n> > —\n> > Reply to this email directly or view it on GitHub\n> > <https://github.com/Air-Craft/MIDIFish/issues/1#issuecomment-156090051>.\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Air-Craft/MIDIFish/issues/1#issuecomment-157785044>.\n>\n"}}