1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

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

This commit is contained in:
ed 2020-04-20 11:49:54 +01:00
parent b8d57b3dbe
commit 09bf952820

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 wont 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;
}