Swift Logo

Xcode11 iOS13 Simulators Couldn’t find MIDI Network Driver Problem – Solved

Recently I installed Xcode11 and tried my working music application on iOS13 simulator. But unfortunately I faced an unexpected runtime error message “Couldn’t find MIDI network driver” and crash!

I was using last update of  AudioKit 4.9 (as I updated it at the same time with Xcode 11) I thought that could be the problem. But not!

I checked on this issue and found the related StackOverflow post that is pointing the problem as iOS13 Simulators problem. So it is not related to AudioKit.

This problem resolved by Evan Muray ‘s method. Copying the existing network drivers to the correct place.

Explained in AudioKit issue section.

I put a copy of the procedure also credit Evan Muray.

  1. Update Xcode to the latest version (if there is an update available)
  2. Make sure your build target deployment version is set to iOS 13.0 (yours most likely is since you were using the iOS 13 simulator)
  3. Quit the applications Simulator and Xcode if they are open
  4. Open Finder
  5. Navigate to the folder which your version of Xcode is located (mine is in my Applications folder)
  6. Find Xcode
  7. Hold down the control button on your keyboard and click on Xcode
  8. A menu should pop up, select ‘Show Package Contents’
  9. You should see the folder called ‘Contents’ now open it
  10. You should now see a variety of folders. Follow the directory path below to find the MIDI network drivers
  11. Navigate to /Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime
  12. Repeat step 7 but this time, click on the file ‘iOS.simruntime’
  13. Open the ‘Contents’ folder inside of the ‘iOS.simruntime’
  14. Open the folder called ‘MacOS’
  15. You should see a document called ‘iOS 13.0’
  16. If you see this, congrats, you are in the right Simulator folder!
  17. Exit out of the ‘MacOS’ folder back to the ‘Contents’ folder and Navigate to /Resources/RuntimeRoot/System/Library/Audio/MIDI Drivers
  18. In this folder, you should see all of the MIDI network drivers which Xcode is missing.
  19. If step 15 is true, exit out of the ‘MIDI Drivers’ folder back into the ‘Audio’ folder
  20. Copy the whole ‘MIDI Drivers’ folder by selecting it and using (Command + C) or Edit -> Copy “MIDI Drivers”, whichever you prefer
  21. Exit out of the ‘Audio’ folder and navigate all the way back to the ‘RuntimeRoot’ folder
  22. Navigate to /Library/Audio and you should see there is no folder called ‘MIDI Drivers’ here, only ‘Plug-Ins’ and ‘Tunings’
  23. You want to Paste the ‘MIDI Drivers’ folder you copied into this ‘Audio’ folder, use (Command + V) or Edit -> Paste Item
  24. Now you should have two ‘MIDI Drivers’ folders: One in /System/Library/Audio and One in /Library/Audio
  25. Close Finder and relaunch Xcode and try running your project again in the iOS 13 iPhone simulator

 

Now, Xcode should not complain about missing the MIDI Drivers, and your code should run without the EXE_BAD_ACCESS!


Posted

in

by

Tags: