Manik Kalra
Manik Kalra

Reputation: 41

Google Drive SDK iOS9

I'm having trouble building my project against the Drive SDK for iOS9. It has mostly to do with a lot of methods being deprecated and certain header files not being found. Any tips on how to make the SDK work with iOS9? Also, will the SDK be updated for iOS9 anytime soon?

Upvotes: 1

Views: 338

Answers (2)

Manik Kalra
Manik Kalra

Reputation: 41

Okay I seem to have got it working by using https://github.com/google/google-api-objectivec-client via Cocoapods. That solved all the issues I had.

Upvotes: 1

AniV
AniV

Reputation: 4037

There is some refactoring that needs to be done to assure compatibility. Unfortunately, this is due to some incomplete transitions of the library, including the move to support iOS 9 and OS X 10.11, which have deprecated NSURLConnection.

For now, if your project targets iOS 8 or OS X 10.10 or earlier, then define GTM_USE_SESSION_FETCHER to 0 for your targets. That will force the library to use the old GTMHTTPFetcher class.

If your minimum target is iOS 9 or OS X 10.11, you'll instead need to replace GTMHTTPFetcher with GTMSessionFetcher from https://code.google.com/p/gtm-session-fetcher/

Hopefully this would work!

Upvotes: 0

Related Questions