Reputation: 8502
I'm getting a very long Linker Error when I try to compile my code, with 3245 duplicate symbol
errors. The errors always include main.o
as the first item, and then one of my other classes as the other item. Obviously, posting the entire error would be pointless (and probably not possible). It actually takes Xcode a few seconds just to render the text of the error... which I find amusing for some reason. But the gist is this:
duplicate symbol _OBJC_IVAR_$_ViewType._device in:
/Users/aaron/Library/Developer/Xcode/DerivedData/Flexile-czlbybfalwraxaawasjobleidvys/Build/Intermediates/Flexile.build/Debug-iphoneos/Flexile.build/Objects-normal/armv7/main.o
/Users/aaron/Library/Developer/Xcode/DerivedData/Flexile-czlbybfalwraxaawasjobleidvys/Build/Intermediates/Flexile.build/Debug-iphoneos/Flexile.build/Objects-normal/armv7/ModelViewController.o
Like I said, the first class listed in each error is always main.o
. I've tried:
main.m
. Other Linker Flags
in Build Settings
and it's empty.Upvotes: 0
Views: 361
Reputation: 8502
Found it: I had imported a ".m" file in one of my classes on accident. Took me a while to find it but that fixed the problem. Thanks for the suggestions!
Upvotes: 1