Xcode 打印台异常输出警告:
Updated my project to Swift 3,2 and all builds ok, when i run it on sim / device I get :-
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 (0x120a88490) 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 (0x120912120). One of the two will be used. Which one is undefined.
解决方法:
The error suggests that the same symbol / class is defined twice.
- Check the frameworks linked to see if there are any duplicates. If so remove the duplicate
- Clean build folder (Command + Shift + K)
- If simulator, then reset the simulator and try
- If device, restart the device and try
I faced the same issue twice, once it was duplicate frameworks and the other time resetting simulator helped.
翻译:
该错误表明相同的符号/类被定义两次。
- 检查链接的框架,看看是否有重复。如果是的话删除重复
- 清洁生成文件夹(Command + Shift + K)
- 如果模拟器,然后重置模拟器并尝试
- 如果设备,重新启动设备并尝试
我曾两次面对过同样的问题,一次是重复的框架,另一次是重置模拟器的帮助。
网友评论