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

[CocoaPods] Duplicate errors with gtm-http-fetcher and GTMHTTPFetcher used at the same time #82

Open
GoogleCodeExporter opened this issue Jun 10, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. For me following step was enough: Perform 'pod update' on project with the 
library in podfile.

What is the expected output? What do you see instead?
Expected the project to build. Instead project does not build and I'm receiving 
163 duplicates errors like:
duplicate symbol _OBJC_METACLASS_$_GTMReadMonitorInputStream in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-cvbrvhbcpumxaohhjabqvxiyzotr/Build/Products/Debug-iphoneos/libPods-GTMHTTPFetcher.a(GTMReadMonitorInputStream.o)
    /Users/username/Library/Developer/Xcode/DerivedData/project-cvbrvhbcpumxaohhjabqvxiyzotr/Build/Products/Debug-iphoneos/libPods-gtm-http-fetcher.a(GTMReadMonitorInputStream.o)
ld: 163 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What version of the product are you using? On what operating system?
Using Google-API-Client (0.1.1)
MacOS 10.10.1
CoocaPods version 0.35.0
XCode 6.1.1 (6A2008a)

Please provide any additional information below.
After pod update I received following log:

Removing RNBlurModalView
Downloading dependencies
Installing GTMHTTPFetcher 1.141 (was 0.1.0)
Using Google-API-Client (0.1.1)
Installing Google-Maps-iOS-SDK 1.9.1 (was 1.9.0)
Using KissXML (5.0)
Installing MGSwipeTableCell 1.3.5 (was 1.3.3)
Installing gtm-http-fetcher (1.0.141)
Installing gtm-oauth2 1.0.125 (was 0.1.0)
Using iVersion (1.11.4)
Using libextobjc (0.4.1)
Generating Pods project
Integrating client project
[!] GTMHTTPFetcher has been deprecated in favor of gtm-http-fetcher

Clean, deleting derived data, cleaning build folder, pod update, pod install 
doesn't help. If I remove 'Google-API-Client' everything is working fine.

Please see more details in: 
http://stackoverflow.com/questions/28105382/cocoapods-duplicate-symbol-google-ap
is

Original issue reported on code.google.com by [email protected] on 23 Jan 2015 at 10:06

@GoogleCodeExporter
Copy link
Author

Just remove GTMHTTPFetcher from your podfile
Google-API-Client has the dependency for gtm-http-fetcher
GTMHTTPFetcher pod has same sources as gtm-http-fetcher

Original comment by [email protected] on 4 Mar 2015 at 2:38

@GoogleCodeExporter
Copy link
Author

To that comment from 4.04.2015: GTMHTTPFetcher must be included in 
Google-API-Client podspec as I don't have it included in my podspec. My full 
podspec:

inhibit_all_warnings!

pod 'libextobjc', '~> 0.4'
pod 'KissXML', '~> 5.0'
pod 'Google-Maps-iOS-SDK', '1.9.0'
pod 'Google-API-Client', '~> 0.1'
pod 'MGSwipeTableCell', '~> 1.0'
pod 'iVersion', '~> 1.10'

This repo does not work out of the box.

Original comment by [email protected] on 13 May 2015 at 10:08

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

No branches or pull requests

1 participant