Open cragworks opened 8 years ago
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:
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
fix:
pod 'Venmo-iOS-SDK' , :git => 'git@github.com:Rayen905/venmo-ios-sdk.git'
http://stackoverflow.com/questions/34774634/duplicate-symbol-venerrordomaincore-and-linker-command-failed-with-exit-code-1