MIDINetworkSession addConnection does not work on iOS 10

Originator:michael
Number:rdar://28445276 Date Originated:23-Sep-2016 09:07 PM
Status:Open Resolved:
Product:iOS/AVFoundation Product Version:10
Classification:Serious Bug Reproducible:Always
 
Area:
AVFoundation (Audio / Video)

Summary:
Calling [[MIDINetworkSession defaultSession] addConnection:connection] seems to have no effect on iOS 10. While [MIDINetworkSession defaultSession].connections subsequently does return the given connection, no network MIDI messages are exchanged.

While testing with my Mac (running 10.11.6 (15G1004)), I found the only way to make a connection was to do it from Audio MIDI Setup on the Mac.

Steps to Reproduce:
1. Call [[MIDINetworkSession defaultSession] addConnection:connection], with a valid host


Expected Results:
Connection is made, [[MIDINetworkSession defaultSession] addConnection:connection] returns array including new connection, and network MIDI messages can be exchanged

Actual Results:
[[MIDINetworkSession defaultSession] addConnection:connection] returns array including new connection, but no connection is actually made. This can be verified by trying to exchange MIDI messages, or by checking the "Participants" list in Audio MIDI Setup.

Version:
iOS 10.0.1 (14A403)

Notes:
This works fine on an iPad Mini Retina running iOS 9.3.5 (13G36).

Configuration:
Reproduced with iPhone 6S Plus and iPad Air 2

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!