google / GTMAppAuth

Apple platforms SDK for using AppAuth with Google libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTMAppAuth & GTLRCore - 2 instances of SessionFetcher

SteveDCronin opened this issue · comments

I want to use GTMAppAuth as the authorizing tool for working with GTLRCore.
I have successfully implemented this setup but I am troubled the duplication of SessionFetcher.

I'm using CocoaPods for GTMAppAuth (pod 'GTMAppAuth').
I have cloned 'google-api-objectivec-client-for-rest' which allows me to build a 'GTLROSXCore' framework in order to utilize the Google Rest client. This project is included in my Xcode workspace.

Both of these Google tools include SessionFetcher.

When I run my macOS app, immediately there are 7 messages in the log (one for each of the 7 classes which constitute 'SessionFetcher' e.g.
objc[30607]: Class GTMGatherInputStream is implemented in both /Users/steve/Library/Developer/Xcode/DerivedData/.../GTLR.framework/Versions/A/GTLR (0x100c2ed10) and /Users/steve/Library/Developer/Xcode/DerivedData/.../Frameworks/GTMSessionFetcher.framework/Versions/A/GTMSessionFetcher (0x1007f96e0). One of the two will be used. Which one is undefined.

Can someone suggest a means by which I might have only 1 instance of SessionFetcher and avoid this troubling situation?

working with Thomas in ObjC Rest API I have solved this issue by using CocoaPods to manage all dependancies and removing that project from my Xcode workspace.