无法从iOS分享到GooglePlus

时间:2014-05-04 14:54:52

标签: ios7 google-plus

我在我的应用中处理社交套餐,并使用多个社交网络开发了共享。在实施适用于iOS的Google+ SDK时,我登录并检索了我的帐户信息,但当我开始分享时,应用程序崩溃

id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
[shareBuilder setPrefillText:obj_featured.title];
UIImage *image = [self captureScreenShot];
[shareBuilder attachImage:image];
[shareBuilder open];

简单地说,我评论并测试了每一行,问题在于-open函数。 在真实设备上运行时出现错误:

 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'
*** First throw call stack:
(0x2e783fd3 0x38ffcccf 0x2e6c2463 0x2e6c222b 0x1e7cd5 0x1c014f 0x1e9f31 0x1ea21d 0x1ea429             0x1c07f3 0x201179 0x2f16cc73 0x2e74f25b 0x2e74e72b 0x2e74cf1f 0x2e6b7f0f 0x2e6b7cf3 0x33610663 0x3100316d 0x106131 0x39509ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException

0 个答案:

没有答案