Error “Class VCWeakObjectHolder is implemented in both…” is crashing debug sessions

六眼飞鱼酱① 提交于 2019-12-05 18:39:36

问题


I am getting following error all the time in my iOS app:

objc[56232]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x12fe564d0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/AVConference (0x12ef82e38). One of the two will be used. Which one is undefined.

The app itself runs fine but the debugger will not attach to the device process. The simulator does attach but the app crashes immediately after a breakpoint is hit.

I am running out of ideas on how to deal with it. Any help would be greatly appreciated.


回答1:


Simulator -> Hardware -> Erase all content and Settings...Works for me.




回答2:


I submitted bug #43377301 to https://bugreport.apple.com/

Debug messages should be off in Apple frameworks (Class VCWeakObjectHolder)

I'm currently fixing bugs in an old code base and I have no idea what this internal Apple "warning" means.

It shouldn't be displayed to the 3rd party developer. I'm using CoreBluetooth and Objective-C.



来源:https://stackoverflow.com/questions/49994063/error-class-vcweakobjectholder-is-implemented-in-both-is-crashing-debug-ses

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!