9

当我在模拟器中运行我的应用程序时,我在 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 上找不到对“类 VCWeakObjectHolder”的单一引用。它让我发疯......虽然这只是一个警告。

更新:Xcode 9.3.1 和 Xcode 9.4 beta 都给出相同的警告。

在此处输入图像描述

4

1 回答 1

0

我收到这个警告一个多月了。首先,我检查了两条路径,以检查框架是否由于某种原因重复,但没有删除任何内容,然后我终于尝试了这个,它对我有用:

  1. 重置模拟器(菜单:Hardware -> Erase all content and settings ...)
  2. 清理项目(Command + Shift + K)
  3. 清理构建文件夹(Command + Option + Shift + K)
  4. 再次在模拟器上运行代码
于 2018-07-19T13:21:43.860 回答