Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Duplicate Symbols Errors #327

Closed
asifhabib opened this issue Sep 17, 2015 · 5 comments
Closed

Duplicate Symbols Errors #327

asifhabib opened this issue Sep 17, 2015 · 5 comments

Comments

@asifhabib
Copy link

Hi, I added the SDK, followed all the instructions and compiled, had errors mentioned bellow. Then I just compiled the Sample code, same error. Running on Xcode is 6.4. While same code was able to run on Xcode 7.0 beta 5.
Now going to download Xcode 7, any solution before Xcode 7 is downloaded. Thanks.
duplicate symbol _llvm.cmdline in:
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskDeviceData.o)
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskUtility.o)
duplicate symbol _llvm.embedded.module in:
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskDeviceData.o)
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskUtility.o)
duplicate symbol _llvm.cmdline in:
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskDeviceData.o)
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskConfiguration.o)
duplicate symbol _llvm.embedded.module in:
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskDeviceData.o)
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskConfiguration.o)
duplicate symbol _llvm.cmdline in:
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskDeviceData.o)
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskLinkerID.o)
duplicate symbol _llvm.embedded.module in:
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskDeviceData.o)
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskLinkerID.o)
duplicate symbol _llvm.cmdline in:
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskDeviceData.o)
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskComponent.o)
duplicate symbol _llvm.embedded.module in:
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskDeviceData.o)
/Users/asifhabib/Downloads/PayPal-iOS-SDK-6da680505fd8110a12d027b379f128a960ce349e/PayPalMobile/libPayPalMobile.a(PPRiskComponent.o)
ld: 8 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@bluk
Copy link
Contributor

bluk commented Sep 17, 2015

I recommend upgrading to Xcode 7. Unfortunately, there is a general issue if there's any compiled Bitcode enabled code within the library will cause Xcode 6.4 or lower to not link correctly. I'll leave this issue open as I'm still investigating if there's any other way but it is better to upgrade to Xcode 7 through the App Store.

Note that the PayPal iOS SDK is not completely bitcode enabled yet. We are still investigating the card.io Bitcode enablement.

@asifhabib
Copy link
Author

-Edit: Issue have been fixed, I uninstall the Xcode 7 beta to install Xcode 7 and it started working on Xcode 6.4 too.

@asifhabib
Copy link
Author

The biggest problem moving to new environment is that every one is not ready yet.
I restarted my computer and it stop working on Xcode 6.4 with same error. I moved to Xcode 7 for paypal, and GooglePlus framework is not ready for Xcode 7. (headbang)
Is there any old SDK which I can run on Xcode 6.4. I have to just made simple transaction.

@tomwhipple
Copy link
Contributor

@bluk tells me he will release an update to SDK 2.11 with a fix #320 very soon, built with the older tools.

@tomwhipple tomwhipple added the bug label Sep 21, 2015
@bluk
Copy link
Contributor

bluk commented Sep 21, 2015

Hi, please try release 2.11.5 which was built without Bitcode enabled. It has the latest fixes but does not have Bitcode enabled at all in the static library which should fix the duplicate symbol issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants