我正在使用最新版本的Swift(4.2)和Xcode(9.4.1)开发一个MapKit
项目。我现在正在使用Pods(alamofire
,alamofireImage
),似乎无法克服此错误:
objc [89368]:两者中均实现了VCWeakObjectHolder类 /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 (0x12250f4d0)和 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/AVConference (0x12163be38)。将使用两者之一。哪个未定义。
我已经清理了几次项目/构建并重置了模拟器,但是到目前为止还没有运气。此外,我尝试浏览整个苹果论坛和堆栈溢出,但到目前为止我还没有碰到任何运气。如果有人对如何做有任何建议,将不胜感激!
欢呼!
答案 0 :(得分:1)
尝试以下操作:
擦除模拟器的内容和设置:在模拟器中,执行硬件->擦除所有内容和设置
清理项目( Command + Shift + K )
清理构建文件夹( Command + Option + Shift + K )
尝试再次运行您的项目。