I found information about creating a network session in Audio&Midi utility and click connect once the iOS Simulator appears in Directory. Il left the port unchanged (5004).
In my App code I created an input port and linked it to the default network session :
When I send midi messages (fom Logic using Network session 1 as Port) the ios app midi handler is not called.
Some say we have to create an ouput port however I don't think it is related
In my App code I created an input port and linked it to the default network session :
Code Block MIDIPortRef inPort = 0; MIDIInputPortCreate(client, CFSTR("Input port"), MyMIDIReadProc, (bridge void * _Nullable) player, &inPort); MIDINetworkSession* session = [MIDINetworkSession defaultSession]; session.enabled = YES; session.connectionPolicy = MIDINetworkConnectionPolicy_Anyone; MIDIPortConnectSource(inPort, session.sourceEndpoint, (bridge void * _Nullable) player);
When I send midi messages (fom Logic using Network session 1 as Port) the ios app midi handler is not called.
Some say we have to create an ouput port however I don't think it is related