swift - Xcode 9.3 中的警告

标签 swift swift4.1

当我在模拟器中运行我的应用程序时,我在 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 都给出相同的警告。

enter image description here

最佳答案

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

  1. 重置模拟器(菜单:硬件 -> 清除所有内容和设置...)
  2. 清理项目(Command + Shift + K)
  3. 清理构建文件夹(Command + Option + Shift + K)
  4. 再次在模拟器上运行代码

关于swift - Xcode 9.3 中的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49585874/

相关文章:

ios - 按下主页按钮时关闭 View Controller

swift - 通用类中的 "segmentation fault : 11"

ios - swift 4 : How to redraw route if user change the direction in Google map ios

arrays - 采用数组和字典的协议(protocol)

ios - 如何根据特定日期和日期范围在 FSCalander 中显示事件数据?

ios - 我已导入 AVFoundation 并将音频添加到我的应用程序中,但如果应用程序进入后台模式,音频不会停止

swift - 无法使用 Spritekit Swift 创建一个将您转换到主菜单的按钮

swift - 如何在 swift 中为 UIView 添加选定的圆角半径和阴影

ios - 如何使用json和swift 4.1在Google map 上添加多个标记?

ios - Xcode 10 中 map 功能的变化