I am using Google Drive access in an iOS app. This has been an active feature in the application since mid-2014 and functions correctly under iOS 6, 7 and 8. Currently, I am testing my project for compatibility with iOS 9.
I downloaded the latest version google-api-objectivec-clientto make sure my project is updated.
I canceled the standard implementation of Google ... as described in detail in this page and is included for completeness at the end of this post.
Problem: when I try to create any of my releases, I get the error message " GTMSessionFetcher.hfile not found".
I am sure that I have correctly implemented the API in accordance with the instructions below / on the Google web page.
I looked at older versions of my code, but unfortunately I did not back up the Google SDK, so I canβt easily say what has changed.
It seems to follow from this ... inside GTMOAuth2Authentication.h...
#if GTM_USE_SESSION_FETCHER
#import "GTMSessionFetcher.h"
#else
#import "GTMHTTPFetcher.h"
#endif
I do not understand how it is installed GTM_USE_SESSION_FETCHERand why this would be true in this case.
Any advice was greatly appreciated.
Implementing Google APIs for iOS
Note. Steps 1 and 2 completed without problems.
Step 3: Prepare the project
- In Xcode, create a new project containing a test application:
- Choose File> New> Project, select the One View application template, and click Next.
- , . Objective-C , "".
- "".
- ,
GTL.xcodeproj Source XCode. - XCode , , .
- " "
Link Binary with Libraries, :libGTLTouchStaticLib.a GTL.Security.framework SystemConfiguration.framework.
- " " :
-ObjC -all_load > . - , , "Enter", .- , " " > " " . ** , .
Unix, , 2, cd, pwd.
GTMOAuth2ViewTouch.xib Source/OAuth2/Touch Supporting Files.- Drive API,
GTLDrive.h GTLDrive_Sources.m Source/Services/Drive/Generated .