当我尝试在我的 IOS 应用程序上打开本机 GPP 共享对话框时,出现以下错误:
使用基于 Web 的共享确实可以按预期工作。这是我的代码:
- (IBAction)shareGooglePlus:(id)sender {
GPPSignIn *signIn = [GPPSignIn sharedInstance];
signIn.clientID = kClientID;
signIn.scopes = [NSArray arrayWithObjects:
kGTLAuthScopePlusLogin,
nil];
signIn.delegate = self;
if (![signIn trySilentAuthentication]){
[signIn authenticate];
}
}
- (void)finishedWithAuth: (GTMOAuth2Authentication *)auth
error: (NSError *) error
{
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance]
nativeShareDialog];
}
先谢谢了