9

I'm getting this warning in Xcode when I run my app in the simulator. What can I do to get rid of it?

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.

Can't find a single reference on Internet to 'Class VCWeakObjectHolder'. It is driving me nuts... although it is just a warning.

Update: Xcode 9.3.1 and Xcode 9.4 beta both give the same warning.

enter image description here

arakweker
  • 1,535
  • 4
  • 18
  • 40
  • How many Xcode you have in Applications directory ? – technerd Mar 31 '18 at 09:06
  • Only Xcode 9.3 in the Applications directory. And Xcode 8 on an external volume. But even if that is not mounted I'm getting the same warning. – arakweker Mar 31 '18 at 12:24
  • the warning was also in the betas... (and now in the release version). – arakweker Mar 31 '18 at 12:25
  • I would try resetting the simulator content, Xcode 9.3 has a bunch of weird issues but maybe that would help solve your problem. – Echizzle Mar 31 '18 at 20:16
  • I tried resetting as you advised, Echizzle. But no luck... same warning. – arakweker Mar 31 '18 at 21:53
  • What all frameworks are you importing? Can you post a screenshot of them(general tab screenshot). Also there are you using any framework called ViceroyTrace? – Harish Apr 02 '18 at 06:54
  • I did Harish. Guess I can remove one of them? Whey are some items in my Project Navigator red? And no I don't know what ViceroyTrace is or does. Probably came with one of the cocoapods? Thanks, Jan – arakweker Apr 02 '18 at 08:58
  • removing one of the Pods_Macaws.framework with the 'minus sign' doesn't work... + is active, - not. – arakweker Apr 02 '18 at 09:01

1 Answers1

0

I had this warning for more than a month. First I checked the both paths, to check if the frameworks were duplicated for some reason, but did not delete anything, then I finally tried this and it worked for me:

  1. Reset the simulator (Menu: Hardware -> Erase all content and settings ... )
  2. Clean the project (Command + Shift + K)
  3. Clean the build folder (Command + Option + Shift + K)
  4. Run the code on the simulator again
LukeSideWalker
  • 7,399
  • 2
  • 37
  • 45