我的ViewController代码如下
#import "ViewController.h"
#import <GTLServiceYouTube.h>
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
GTLServiceYouTube *g=[[GTLServiceYouTube alloc] init];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}对于上述代码,我将收到以下错误。
GTLDriveChannel (api#channel)注册与GTLCalendarChannel GTLPlusDomainsAcl (plus#acl)注册冲突与GTLPlusAcl GTLPlusDomainsActivity (plus#activity)注册冲突与GTLPlusActivity GTLPlusDomainsActivityFeed (plus#activityFeed)注册冲突与GTLPlusActivityFeed GTLPlusDomainsComment (plus#comment)注册冲突与GTLPlusComment GTLPlusDomainsCommentFeed (plus#commentFeed)注册冲突()注册冲突与#en29 20()注册冲突与en24#()注册冲突与()注册冲突与
下面列出了我的podfile配置
target 'VideoApp', :exclusive => true do
pod "youtube-ios-player-helper", "~> 0.1"
pod 'Google-API-Client'
end在这里也没有什么帮助。https://groups.google.com/forum/#!topic/google-api-objectivec-client/cW2TIBZ7mwA
在开发人员控制台中启用了两个apis。

发布于 2015-03-27 17:19:01
我已经为YouTube数据API实现了自己的包装器,如果您愿意,可以使用它,它很简单:)
https://github.com/muhammadbassio/YouTubeAPI3-Objective-C-wrapper
https://stackoverflow.com/questions/29157444
复制相似问题