TwitterCore and TwitterKit conflicts on iOS

ios

#1

Trying to add Twitter to my project and it compiles on the simulator but when I compile it on a device target i get the following linker issues:

duplicate symbol l003 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRColorUtil.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRTweetLabel.o)
duplicate symbol l011 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRLogInButton.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTTRViewUtil.o)
duplicate symbol l012 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRLogInButton.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTTRViewUtil.o)
duplicate symbol l002 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRColorUtil.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l003 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRColorUtil.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l004 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRColorUtil.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l005 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRColorUtil.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l006 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRColorUtil.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l008 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRTweetTableViewCell.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l010 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRUserSessionVerifier.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l011 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRLogInButton.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l012 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRLogInButton.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l013 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRLogInButton.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l020 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTTRTweetImageView.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l021 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTTRTweetImageView.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l022 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTTRTweetImageView.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l023 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTTRTweetImageView.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l034 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRScribeService.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l036 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRRequestEmailView.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l037 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRRequestEmailView.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l057 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterCore.framework/TwitterCore(TWTRScribeEvent.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l076 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRAttributedLabel.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l077 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRAttributedLabel.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l078 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRAttributedLabel.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l079 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRAttributedLabel.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l080 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRAttributedLabel.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
duplicate symbol l105 in:
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRTweetView.o)
    /Users/Ninja/Documents/Workspace/Pheed/TwitterKit.framework/TwitterKit(TWTRBezierPaths.o)
ld: 27 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

help?


Help
#2

solved by updating Xcode to 6.3 like suggested in this link:


#3

Hi, any news regarding this problem? I run into this problem and unfortunatelly I can’t upgrade to Xcode 6.3 just yet.

Thanks in advance.


#4

Yeah… updating introduced many problems for me too. but it was the only way i found after many work hours.
heads up, if you are using cocoa pods then prepare to remove the use_frameworks! directive


#5

@eventomer Ya. It’s working for me. Thanks!!!..


#6