2014-11-08 01:46:19.851 CarREC-lite[3413:60b] +[NSDecimalNumber gad_negativeOne]: unrecognized selector sent to class 0x392ed0e0
2014-11-08 01:46:19.855 CarREC-lite[3413:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSDecimalNumber gad_negativeOne]: unrecognized selector sent to class 0x392ed0e0'
*** First throw call stack:
(0x2e25bf83 0x38a0cccf 0x2e25f823 0x2e25e203 0x2e1ad768 0x15d248 0x152a20 0x15272c 0x38ef481f 0x38ef6053 0x1526fc 0x15739c 0x38a0d53d 0x38a119e3 0x38a11957 0x38a168b9 0xd0dd9 0x30a7d4ab 0x30a7d269 0xccf0d 0xcca61 0xee35d 0x30ae8587 0x30ae7edb 0x30ae256b 0x30a7e6e9 0x30a7d851 0x30ae1ca9 0x33096aed 0x330966d7 0x2e226a67 0x2e226a03 0x2e2251d7 0x2e18febf 0x2e18fca3 0x30ae0ed1 0x30adc14d 0xd9a99 0x38f19ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
libGoogleAdMobAds.a
- (void)viewDidLoad {
[super viewDidLoad];
// Replace this ad unit ID with your own ad unit ID.
self.bannerView.adUnitID = @"ca-app-pub-2813550946475217/7353406885";
self.bannerView.rootViewController = self;
GADRequest *request = [GADRequest request];
// Requests test ads on devices you specify. Your test device ID is printed to the console when
// an ad request is made.
// request.testDevices = @[ GAD_SIMULATOR_ID, @"5f7463e15079a5d8694544e0c7108afc" ];
[self.bannerView loadRequest:request];
}
解决:@see http://www.999dh.net/home.php?mod=space&uid=1&do=blog&id=413
+[NSDecimalNumber gad_negativeOne]: unrecognized selector sent to class
今天在使用 admob 的时候 遇到了这个问题,使用万能的 google 得到了答案
"-ObjC" to Other Linker Flags of Build Settings tab.
以下问题是由于网络缘故,偶尔不能访问google adv 服务器,但不是被墙,很多时候还是可以访问的。
2014-11-08 02:59:45.709 CarREC-lite[3508:6c0f] CFNetwork SSLHandshake failed (-9800)2014-11-08 02:59:46.296 CarREC-lite[3508:6c0f] CFNetwork SSLHandshake failed (-9800)
2014-11-08 02:59:46.747 CarREC-lite[3508:6c0f] CFNetwork SSLHandshake failed (-9800)
2014-11-08 02:59:46.759 CarREC-lite[3508:6c0f] NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9800)