In Xcode 11 beta 6's iOS 13 simulators I'm getting a crash when enabling the MIDI Network Session.
I was able to replicate by adding the following lines to AppDelegate's didFinishLaunching:WithOptions:
in a fresh project:
MIDINetworkSession.default().isEnabled = true
MIDINetworkSession.default().connectionPolicy = .anyone
When run in an iOS 13 simulator the app will crash at the first of these lines, printing "Couldn't find MIDI network driver" to the console. iOS 12 and earlier simulators are unaffected.
Strangely though it seems that not all of my iOS 13 simulators are affected. It seems that any iOS 13 simulators I had used from Xcode 11 beta 4 and earlier work correctly. The only simulators affected may be ones I used for the first time in Xcode 11 beta 5 onwards.
I'm assuming this is a beta software bug, and have already filed the bug with Apple. But I felt it smart to document here in case anyone else comes across it.
Update: 2019-09-11
This is still a problem for me with the simulators in the Xcode 11.0 GM seed (including the new iPhone 11 models).
Update: 2019-09-30
Issue still exists in Xcode 11.1 GM seed. I followed the steps in Evan's answer and that appeared to fix it.
MIDINetworkSession.default().isEnabled = true
MIDINetworkSession.default().connectionPolicy = .anyone
Didn't work for me on XcodeVersion 11.0 (11A420a) public release. This looks like a very annoying problem. We're just about releasing an app! – Flickinger