Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFO: Xcode11 - iOS 13 Simulators - Network MIDI driver error. #1872

Closed
trevor-sonic opened this issue Sep 21, 2019 · 15 comments

Comments

@trevor-sonic
Copy link
Contributor

@trevor-sonic trevor-sonic commented Sep 21, 2019

Hi,

I have AudioKit 4.9 on Xcode11 my working app is compiling but giving runtime error.
"Couldn't find MIDI network driver"

I checked on this issue and found the related StackOverflow post that is pointing the problem as iOS13 Simulators problem. So it is not looking like related to AudioKit.
But I'm also wondering; if there is something to do within the framework to prevent this crash? A condition for the compiler? Or someone figured out a solution already?

(With this post I also wanted to warn the others about Xcode11 install, maybe it is better to wait for it. If this is unrelated please delete this issue)

@aure

This comment has been minimized.

Copy link
Member

@aure aure commented Sep 22, 2019

I worry about putting a band-aid to fix this in AudioKit because maybe it will just get fixed by Apple at some point and then we'd have to remember to take out the band-aid.

@trevor-sonic

This comment has been minimized.

Copy link
Contributor Author

@trevor-sonic trevor-sonic commented Sep 24, 2019

Fortunately on iOS12.x Simulators there is no crash, so I stick to them for the moment and expecting a fix from Apple.🙏

@TheHiddenDuck

This comment has been minimized.

Copy link

@TheHiddenDuck TheHiddenDuck commented Sep 28, 2019

@aure could you please point out what that "band-aid" would be so I could try it locally for now? Also it sounds from that thread that it also happens on devices running iOS 13.

@trevor-sonic

This comment has been minimized.

Copy link
Contributor Author

@trevor-sonic trevor-sonic commented Sep 28, 2019

@TheHiddenDuck I tried on iOS 13 device. There is no issue (thankfully!)
Only simulators are effected.

@TheHiddenDuck

This comment has been minimized.

Copy link

@TheHiddenDuck TheHiddenDuck commented Sep 28, 2019

@trevor-sonic thank you, that's very good news.

@aure

This comment has been minimized.

Copy link
Member

@aure aure commented Sep 28, 2019

Since only simulators are affected you could be some kind of compilation condition in to check for that, but that sounds pretty hokey to me. I'm going to close this issue for now. Fingers crossed for Apple to fix this soon.

@aure aure closed this Sep 28, 2019
@emurray2

This comment has been minimized.

Copy link

@emurray2 emurray2 commented Sep 28, 2019

Hi Trevor,

I was getting the same error as you and this frusturated me. I searched for a solution for four days, and finally found one. I hope this will help you as well! Please follow these steps carefully:

  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! I hope this helps, and please feel free to reach out to me if you have any more questions.

Best,

Evan Murray

@aure

This comment has been minimized.

Copy link
Member

@aure aure commented Sep 28, 2019

Well that's a simple 25 step procedure! :)

@aure

This comment has been minimized.

Copy link
Member

@aure aure commented Sep 29, 2019

Evan's method works. It's easier than it looks but it is 25 steps because it is very specific!

@sieren

This comment has been minimized.

Copy link
Contributor

@sieren sieren commented Oct 1, 2019

I still feel like someone should file a radar with Apple, we might all file the same one and get it bumped up in the priority list.

@emurray2

This comment has been minimized.

Copy link

@emurray2 emurray2 commented Oct 1, 2019

Yes I agree. Now we also know what the problem is, so it should be easy for Apple to fix.

@trevor-sonic

This comment has been minimized.

Copy link
Contributor Author

@trevor-sonic trevor-sonic commented Oct 3, 2019

Thanks a lot @emurray2 I give you 25 ⭐️ 👍

@emurray2

This comment has been minimized.

Copy link

@emurray2 emurray2 commented Oct 3, 2019

You're welcome! I'm glad this helped. @trevor-sonic

@trevor-sonic

This comment has been minimized.

Copy link
Contributor Author

@trevor-sonic trevor-sonic commented Oct 7, 2019

@emurray2 I created a blog post about this issue. I fully credit you in the post.

@emurray2

This comment has been minimized.

Copy link

@emurray2 emurray2 commented Oct 7, 2019

Awesome thank you for sharing!

eljeff referenced this issue in AudioKit/ROMPlayer Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.