App crashing with +[NSDecimalNumber gad_negativeOne]: issue?

来源:互联网 发布:张敏周星驰关系知乎 编辑:程序博客网 时间:2024/05/15 11:26


转自 :stackoverflow 


App crashing with  +[NSDecimalNumber gad_negativeOne]: issue?

My app was working before well, then i added admob framework and now its crashing .

Please check the crash logs,


    self.adBanner = [[GADBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait                                                   origin:origin]



解决方案:

You need to add "-ObjC" to Other Linker Flags of Build Settings tab. Good luck!



 

0 0