I also encountered an issue with an unexpected:
No factory registered for id
error when trying to play sound. Xcode 12.2, Mac OSX Catalina 10.15.7, simulator running iOS 14.2.
Code had previously worked on prior versions of the simulator.
Problem ONLY happened when I had Mac System Preferences > Sound > Output set to my Logitech USB Headset. The code otherwise worked when: played through my LG Monitor, played through my Airpods Pro, and when executing on my iPhone 11 Pro.
Spent over an hour trying to diagnose the issue before restarting & noticing audio working when headset wasn't used for output.
Not even sure where to file this issue, but hoping it helps someone. Am assuming it's an OS-specific issue & not one that'll result in a problem w/the app or code.
Topic:
Programming Languages
SubTopic:
Swift
Tags: