小编Sam*_*am 的帖子

谷歌Api错误"多个方法名为'initWithArray:'找到"

我正在使用谷歌日历API,我收到两个错误.

  1. GTMGatherInputStream.m:25:13:找到名为'initWithArray:'的多个方法

    #import "GTMGatherInputStream.h"
    @implementation GTMGatherInputStream
    + (NSInputStream *)streamWithArray:(NSArray *)dataArray {
        return [[[self alloc] initWithArray:dataArray] autorelease]; //error on this line
    }
    
    Run Code Online (Sandbox Code Playgroud)
  2. GTMOAuth2Authentication.h:31:11:找不到'GTMSessionFetcher.h'文件

    #if GTM_USE_SESSION_FETCHER
    #import "GTMSessionFetcher.h" //GTMSessionFetcher.h file not found error
    #else
    #import "GTMHTTPFetcher.h"
    #endif  // GTM_USE_SESSION_FETCHER
    
    Run Code Online (Sandbox Code Playgroud)

我在网上到处研究过这个错误,但我什么都没发现.我正在使用GM Xcode 7.0运行GM El capitan.我已经尝试了多种不同的方法来解决它,但没有任何方法可行.我的代码不会编译.我该如何解决?

api objective-c google-api swift xcode7

11
推荐指数
1
解决办法
2730
查看次数

标签 统计

api ×1

google-api ×1

objective-c ×1

swift ×1

xcode7 ×1