Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample project for #1674 #1800

Closed
cbowns opened this issue Feb 6, 2014 · 6 comments
Closed

Sample project for #1674 #1800

cbowns opened this issue Feb 6, 2014 · 6 comments

Comments

@cbowns
Copy link

cbowns commented Feb 6, 2014

Hi all,

I've been following the duplicated symbols issue on #1674 and wanted to submit a sample project that shows this problem.

RACTest has a broken build on the broken-cocoapods branch from this to this commit. To simulate the problem I'm seeing with a private project, I added GitHub's Mantle project to only the RACTest target, and included it in the App Delegate.

The build fails with:

Ld /Users/cbowns/Library/Developer/Xcode/DerivedData/RACTest-bolbovcduenzcybkufrumsvhgtxi/Build/Products/Debug-iphonesimulator/RACTest.app/RACTest normal i386
    cd /Users/cbowns/Development/RACTest
    setenv IPHONEOS_DEPLOYMENT_TARGET 7.0
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin::/usr/X11/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/Users/cbowns/bin:."
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/cbowns/Library/Developer/Xcode/DerivedData/RACTest-bolbovcduenzcybkufrumsvhgtxi/Build/Products/Debug-iphonesimulator -F/Users/cbowns/Library/Developer/Xcode/DerivedData/RACTest-bolbovcduenzcybkufrumsvhgtxi/Build/Products/Debug-iphonesimulator -filelist /Users/cbowns/Library/Developer/Xcode/DerivedData/RACTest-bolbovcduenzcybkufrumsvhgtxi/Build/Intermediates/RACTest.build/Debug-iphonesimulator/RACTest.build/Objects-normal/i386/RACTest.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework Foundation -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -framework CoreGraphics -framework UIKit -framework Foundation -lPods -lPods-RACTest -Xlinker -dependency_info -Xlinker /Users/cbowns/Library/Developer/Xcode/DerivedData/RACTest-bolbovcduenzcybkufrumsvhgtxi/Build/Intermediates/RACTest.build/Debug-iphonesimulator/RACTest.build/Objects-normal/i386/RACTest_dependency_info.dat -o /Users/cbowns/Library/Developer/Xcode/DerivedData/RACTest-bolbovcduenzcybkufrumsvhgtxi/Build/Products/Debug-iphonesimulator/RACTest.app/RACTest

<output snipped>

ld: 219 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Let me know if you need any other information, I'm glad to help out.

@cbowns
Copy link
Author

cbowns commented Feb 6, 2014

And I've uploaded the log where I added Mantle to the project in this commit

@cbowns
Copy link
Author

cbowns commented Feb 6, 2014

Oh, this is also relevant to #1729.

@cbowns
Copy link
Author

cbowns commented Feb 6, 2014

The manual workaround is simple: remove libPods from the main target

@alloy
Copy link
Member

alloy commented Feb 7, 2014

Thanks a bunch!

I won’t have time to look at this soon, though, if you or anyone else feels like looking into the fix, let me know and I will help pointing at the right places etc.

@cbowns
Copy link
Author

cbowns commented Feb 7, 2014

@alloy I'd love to help get this fixed, as it's the #1 issue I hit with Cocoapods on every project I use it with. Is #1729 is the core issue to be fixed here? (Whatever it is, if you could add whatever info's in your head about the problem and potential solutions, I'll take a look.)

@kylef
Copy link
Contributor

kylef commented Mar 11, 2014

I'm going to close this in favour of #1729.

@kylef kylef closed this as completed Mar 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants