Browse Source

iOS: Removed a workaround for a bug when using MIDI in an iOS 13 simulator

tags/2021-05-28
ed 5 years ago
parent
commit
09bf952820
1 changed files with 3 additions and 16 deletions
  1. +3
    -16
      modules/juce_audio_devices/native/juce_mac_CoreMidi.cpp

+ 3
- 16
modules/juce_audio_devices/native/juce_mac_CoreMidi.cpp View File

@@ -220,22 +220,9 @@ namespace CoreMidiHelpers
if (! hasEnabledNetworkSession)
{
auto iOSVersion = nsStringToJuce ([[UIDevice currentDevice] systemVersion]);
auto majorVersion = StringArray::fromTokens (iOSVersion, ".", {})[0].getIntValue();
if (majorVersion == 13)
{
// From the Xcode 11 release notes known issues:
// Attempting to create an MIDINetworkSession in a simulated device running
// iOS 13 won’t succeed. (54484923)
jassertfalse;
}
else
{
MIDINetworkSession* session = [MIDINetworkSession defaultSession];
session.enabled = YES;
session.connectionPolicy = MIDINetworkConnectionPolicy_Anyone;
}
MIDINetworkSession* session = [MIDINetworkSession defaultSession];
session.enabled = YES;
session.connectionPolicy = MIDINetworkConnectionPolicy_Anyone;
hasEnabledNetworkSession = true;
}


Loading…
Cancel
Save