Class VCWeakObjectHolder is implemented in both

Hi All,


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.


and the app stops in AppDelegate.


Any help here would be much appreciated 😟

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.

Did you ever manage to fix this issue? I'm facing the same problem, but @newwbee's solution (which I note is also on Stack Overflow) didn't help me at all.


If you managed to get around the problem, could you please explain how?


Thanks.

- Clean build folder should be (Command + Option + Shift + K)


I did the following to resolve this issue:


  1. reset the simulator
  2. cleaned the project (Command + Shift + K)
  3. cleaned the build folder (Command + Option + Shift + K)
  4. re-ran my code, the warning/error was gone.

This is a very usual message by now. Just ignore it.

Worked for me 🙌

Class VCWeakObjectHolder is implemented in both
 
 
Q