Swift 5.1 Error: [plugin] AddInstanceForFactory: No factory registered for id <CFUUID

前端 未结 7 2274
再見小時候
再見小時候 2021-02-12 10:41

App crashes with the following error message

2019-10-12 20:01:34.332334-0700 Awesome App[26368:3535170] [plugin] AddInstanceForFactory: No factory registered for         


        
7条回答
  •  情话喂你
    2021-02-12 10:58

    You could use do/catch to avoid the crash and examine the exception, or ignore the issue all together with try?. For me, this was only showing up in the simulator when calling:

    try? AVAudioSession.sharedInstance().setCategory(.playback)

    I think it's safe to ignore it in my case.

提交回复
热议问题