I got iOS app, and when i try to build my project XCode give me this error:
linker command failed with exit code 1 (use -v to see invocation)
What’s happening? How should i solve this problem?
Error:
ld: duplicate symbol _OBJC_CLASS_$_TrackInfo in /Users/Development/Library/Developer/Xcode/DerivedData/turbomusic-ezqahcxcowedlgaylyjxqdieywsn/Build/Intermediates/turbomusic.build/Debug-iphonesimulator/turbomusic.build/Objects-normal/i386/PlayerView.o and /Users/Development/Library/Developer/Xcode/DerivedData/turbomusic-ezqahcxcowedlgaylyjxqdieywsn/Build/Intermediates/turbomusic.build/Debug-iphonesimulator/turbomusic.build/Objects-normal/i386/turbomusicAppDelegate.o for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
turbomusicAppDelegate.mandPlayerView.mboth declare a class namedTrackInfo. This could be either because you have an actual duplicate of the class in both files (or the header files they include), or you are including the header which includesTrackInfoin both files without using include guards, in this case its probably better to use the#importdirective rather than the#includeone, because the compiler makes sure that the header is only included once when you use#import.