ksandyasa / google-api-objectivec-client

Automatically exported from code.google.com/p/google-api-objectivec-client
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 Osieck...@gmail.com on 23 Jan 2015 at 10:06

GoogleCodeExporter commented 9 years ago
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 serg.f...@gmail.com on 4 Mar 2015 at 2:38

GoogleCodeExporter commented 9 years ago
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 Osieck...@gmail.com on 13 May 2015 at 10:08