GTLFramework building issues.

190 views
Skip to first unread message

Dice-K

unread,
Feb 12, 2012, 9:50:27 PM2/12/12
to Google APIs Client Library for Objective-C
When I going to build GTL project, 9 errors appear
GTMHTTPFetcherLogging.m.

"Category is implementing a method which will also be implemented by
its primary class"

How do I configure the GTL.xcodeproj?

Project version in ReleaseNotes.txt is "22-December-2011".

Dice-K

David Phillip Oster

unread,
Feb 14, 2012, 2:35:20 AM2/14/12
to google-api-obj...@googlegroups.com
A quick, temporary workaround is simply to not include GTMHTTPFetchLogging.m in your project, for now.

Greg Robbins

unread,
Feb 14, 2012, 1:50:28 PM2/14/12
to google-api-obj...@googlegroups.com
I just tried a clean check-out of the project from the subversion repository, and was able to build each of the project targets with Xcode 4 without difficulty.

Likely there is an inconsistency in the target you are building of the STRIP_GTM_FETCH_LOGGING preprocessor flag, as some methods compile either in the GTMHTTPFetcher class or in the GTMHTTPFetcherLogging class depending on the value of that flag.

Greg Robbins

unread,
Feb 15, 2012, 3:39:49 PM2/15/12
to google-api-obj...@googlegroups.com
We have revised the sources for better compatibility with recent compilers, as newer compilers are more strict about category interfaces and implementations.


Please update your sources from subversion, and let us know if you continue to have any difficulty with this.

Thank you for bringing it to our attention.

David Lowe

unread,
Jul 11, 2012, 3:19:19 PM7/11/12
to google-api-obj...@googlegroups.com
I'm pretty inexperienced with SVN but for some reason I was still getting those 9 warnings (not errors) even after I ran 

svn checkout http://gdata-objectivec-client.googlecode.com/svn/trunk/ gdata-objectivec-client-read-only

in the terminal.  (XCode version 4.3.2)

However, when I just manually added the changes posted from Greg's link into GTMHTTPFetcherLogging.m it got rid of them.  Am I doing something wrong with my subversion checkout?  Is adding that code manually going to screw things up for me later?

Thanks!

David

Greg Robbins

unread,
Jul 11, 2012, 5:23:15 PM7/11/12
to google-api-obj...@googlegroups.com
It's ok to manually modify the checked out files. You can always see your changes with svn diff, and revert to the latest checked-in versions with svn revert.

A clean check-out should work unmodified with the current Xcode compilers, though.

Reply all
Reply to author
Forward
0 new messages