当我在模拟器中运行我的应用程序时,我在 Xcode 中收到此警告。我该怎么做才能摆脱它?
objc[6529]: 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 (0x13490b4d0) 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 (0x133a37e38). One of the two will be used. Which one is undefined.
在 Internet 上找不到对“Class VCWeakObjectHolder”的单一引用。这让我发疯......虽然这只是一个警告。
更新:Xcode 9.3.1 和 Xcode 9.4 beta 都给出相同的警告。
最佳答案
我收到这个警告已有一个多月了。首先我检查了两条路径,检查框架是否由于某种原因重复,但没有删除任何东西,然后我终于尝试了这个并且它对我有用:
- 重置模拟器(菜单:硬件 -> 清除所有内容和设置...)
- 清理项目(Command + Shift + K)
- 清理构建文件夹(Command + Option + Shift + K)
- 再次在模拟器上运行代码
关于swift - Xcode 9.3 中的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49585874/