Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Duplicate symbols #121

Open
cragworks opened this issue Jan 13, 2016 · 2 comments
Open

Duplicate symbols #121

cragworks opened this issue Jan 13, 2016 · 2 comments

Comments

@cragworks
Copy link

http://stackoverflow.com/questions/34774634/duplicate-symbol-venerrordomaincore-and-linker-command-failed-with-exit-code-1

@cragworks
Copy link
Author

What happened was that the version of Venmo iOS SDK I was importing wasn't the latest version even though I was using the default pod import code: pod 'Venmo-iOS-SDK', '~>1.3'

The version I was importing was 1.3, which has duplicate symbols errors in my project. I ended up having to change my podfile to this to import the newest version of Venmo:

target 'Cocoapodstest' do
pod 'Venmo-iOS-SDK', :git => 'https://github.com/venmo/venmo-ios-sdk.git', :branch => 'master'
end

I got helped out by reddit user brendan09:

https://www.reddit.com/r/iOSProgramming/comments/40thu1/duplicate_symbol_venerrordomaincore_and_linker/cyx3e7o

I wish the tutorial provided code for importing the latest version and not the error version. Also, I wish it provided the entire podfile code and not just the one line: pod 'Venmo-iOS-SDK', '~>1.3' because programmers new to cocoapods already have a hard enough time with following the tutorial and might not know where the place that line (in target? in target tests? in target UI tests?). Tutorial should not have errors like this and anyone trying to do the tutorial now will have the same error as I have, leading them to either giving up or googling forever until they find this/the reddit post.

According to brendan09, you guys have a podspec that locks the downloaded cocoapods version of Venmo to 1.3, which is broken, resulting in not being able to obtain the newest version of Venmo: https://www.reddit.com/r/iOSProgramming/comments/40thu1/duplicate_symbol_venerrordomaincore_and_linker/cyx6pq6

@Rayen905
Copy link

fix:

Pods for M

pod 'Venmo-iOS-SDK' , :git => '[email protected]:Rayen905/venmo-ios-sdk.git'

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

2 participants