我在我的应用程序中使用 Google Plus API 来共享内容。我使用这些行在我的应用程序中显示本机共享对话框:
id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
[shareBuilder setPrefillText:MY_TEXT];
[shareBuilder setURLToShare:[NSURL URLWithString:MY_URL];
[shareBuilder open];
对话框显示成功。当我触摸“公共”以更改隐私时,立即使应用程序崩溃。
我正在使用 XCode 5,而我的 iphone 是 iOS 5.0。XCode 显示日志:
Uncaught exception:
-[NSCache setObject:forKey:cost:]: attempt to insert nil value (key:acl_public_com.google.GPPCommonSharedResources)
Stack trace: (
0 CoreFoundation 0x33e6f8d7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x340bf1e5 objc_exception_throw + 32
2 CoreFoundation 0x33e00cf5 +[NSObject copyWithZone:] + 0
3 CoreFoundation 0x33e024a1 -[NSCache setObject:forKey:] + 44
4 MyApp 0x002f86e5 +[UIImage(GPPAdditions) gpp_setCachedImage:forKey:]
5 MyAPP 0x002f8535 +[UIImage(GPPAdditions) gpp_imageNamed:bundle:] + 220
6 MyApp 0x002f85df +[UIImage(GPPAdditions) gpp_imageNamed:tint:bundle:] + 13
请帮我解决这个问题。