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

duplicate symbol errors #76

Closed
ajaybhardwaj opened this issue Dec 26, 2013 · 10 comments
Closed

duplicate symbol errors #76

ajaybhardwaj opened this issue Dec 26, 2013 · 10 comments

Comments

@ajaybhardwaj
Copy link

Hi Guys,

I have strongly followed the instructions for the PayPal integration but unfortunately i am getting error. Please see the attached screenshot.

screen shot 2013-12-26 at 11 23 14 am

I am using Xcode ver.5.0.2. When i am unchecking the libPayPalMobile.a from targets this issue used to get resolved but other file reference error use to generate. Please see the attached for the same.

screen shot 2013-12-26 at 11 33 40 am

Please let me know where i am going wrong & also i have gone through the other threads & tried all the possible solutions but no luck.

Thanks & Regards,
AJ

@dgoldman-pdx
Copy link
Contributor

@ajaybhardwaj sometimes this sort of problem can be resolved by deleting your project's "Derived Data" folder, restarting Xcode, and building again.

To delete the Derived Data folder: in the Organizer window, select your project, and then click the Delete... button to the right of the Derived Data path.

Does that procedure help in your case?

@ajaybhardwaj
Copy link
Author

@dgoldman-ebay Thanks for the reply.

I had already tried removing the derived data folder, but not luck. I am quite surprised actually the sample app is working quite fine but not able to integrate the sdk with my app :(

Please let me know if anything else i can do to get rid of this issues.

@dgoldman-pdx
Copy link
Contributor

Hmm.

In your target's Build Phases window, type libPayPalMobile in the search box. There should be only a single entry found (under Link Binary With Libraries).

@ajaybhardwaj
Copy link
Author

@dgoldman-ebay
Yes there is only one entry in the targets, but the problem is when i am keeping the library in the targets, i started to get the duplicate symbol errors.

@dgoldman-pdx
Copy link
Contributor

Something else to check: are you using the linker flag -all_load? If so, try removing that.

@ajaybhardwaj
Copy link
Author

@dgoldman-ebay
I have removed -all_load from the other linker flag & now its working like a charm.

Thanks man, really appreciate your help. You save my day :) 👍

@dgoldman-pdx
Copy link
Contributor

@ajaybhardwaj my thanks to you, too!

This discussion has pointed me to a problem with our most recent build, which was responsible for causing this problem in the first place. (The problem only happens when -all_load is specified.) So tomorrow I should be able to post a new build that solves this once and for all.

@ajaybhardwaj
Copy link
Author

Yes i think that can save somebody's lots of time. Anyways thanks a lot once again.

@subhashsanghani
Copy link

When i archiving an Application i got same error. Also there is no flag like -all_load

Please help me where am i wrong.

@dgoldman-pdx
Copy link
Contributor

See #269

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