最初感谢Rivero https://stackoverflow.com/users/4151216/rivero为我指明了正确的方向......
谢谢Peter https://stackoverflow.com/users/1176247/peter他的答案这个问题 https://stackoverflow.com/questions/32615688/google-api-error-multiple-methods-named-initwitharray-found.
为 iOS 6、7、8 和 9 构建...
破解了以下内容...
STEP 1
In GTMOAuth2Authentication.h
(OAuth 目录)并在GTLService.h
(对象目录)
找到这个代码块...
#if (!TARGET_OS_IPHONE && defined(MAC_OS_X_VERSION_10_11) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_11) \
|| (TARGET_OS_IPHONE && defined(__IPHONE_9_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0)
#ifndef GTM_USE_SESSION_FETCHER
#define GTM_USE_SESSION_FETCHER 1
#endif
#endif
...并改变
#define GTM_USE_SESSION_FETCHER 1
... to
#define GTM_USE_SESSION_FETCHER 0
STEP 2
In GTMGatherInputStream.m
(HTTPFetcher目录)
... 改变
return [[[self alloc] initWithArray:dataArray] autorelease];
... to
return [[(GTMGatherInputStream*)[self alloc] initWithArray:dataArray] autorelease];
STEP 3
In GTMHTTPFetcherLogging.m
(HTTPFetcher目录)
... 改变
NSString *escapedResponseFile = [responseDataFileName stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
... to
NSString *escapedResponseFile = [responseDataFileName stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
STEP 4
In GTL
项目设置,Apple LLVM 7.0 警告 - 所有语言下
... 改变
已弃用的函数 = 是
... to
不推荐使用的函数 = 否