我目前正在嘗試將我的admob代碼整合到我的應用程序中。但不知何故,在啓動時應用程序崩潰,而在控制檯中沒有任何輸出。 EXC_BAD_ACCESS。但我發現一旦它從admob sdk執行下面一行,應用程序就會崩潰。iOS應用程序在使用Admob時崩潰
// Initiate a generic request to load it with an ad.
[bannerView_ loadRequest:[GADRequest request]];
因爲我沒有得到從控制檯的任何輸出,我也從廣發行「BT」,得到了下面的輸出。
(gdb) bt
#0 0x00057005 in undo()
#1 0x0001864e in -[GADCachedFile fileModificationDate] (self=0x735fe70, _cmd=0x3c902) at /Volumes/BuildData/pulse-data/recipes/88221850/base/branches/googleads_nextgen_iphone_release_branch/googlemac/iPhone/GoogleAds/NextGen/Network/GADCachedFile.m:72
#2 0x000189f6 in -[GADCachedFile beginFetchWithCacheBuster:] (self=0x735fe70, _cmd=0x3c88d, cacheBuster=0 '\000') at /Volumes/BuildData/pulse-data/recipes/88221850/base/branches/googleads_nextgen_iphone_release_branch/googlemac/iPhone/GoogleAds/NextGen/Network/GADCachedFile.m:133
#3 0x000182fa in -[GADCachedFile validate] (self=0x735fe70, _cmd=0x3b104) at /Volumes/BuildData/pulse-data/recipes/88221850/base/branches/googleads_nextgen_iphone_release_branch/googlemac/iPhone/GoogleAds/NextGen/Network/GADCachedFile.m:156
#4 0x0002b51a in -[GADObjectPrivate ensureSupportFiles] (self=0x8838bd0, _cmd=0x3aad7) at /Volumes/BuildData/pulse-data/recipes/88221850/base/branches/googleads_nextgen_iphone_release_branch/googlemac/iPhone/GoogleAds/NextGen/Object/GADObjectPrivate.m:256
#5 0x0002abc4 in -[GADObjectPrivate loadRequest:] (self=0x8838bd0, _cmd=0x34a1e, request=0x735e930) at /Volumes/BuildData/pulse-data/recipes/88221850/base/branches/googleads_nextgen_iphone_release_branch/googlemac/iPhone/GoogleAds/NextGen/Object/GADObjectPrivate.m:715
#6 0x00007c8b in -[TwitUpdateViewController viewDidLoad] (self=0x732f020, _cmd=0x35c00) at /Users/ram/Documents/Tweet 2/Classes/TwitUpdateViewController.m:635
#7 0x006c05ca in -[UIViewController view]()
#8 0x00002ea3 in -[TwitUpdateAppDelegate applicationDidFinishLaunching:] (self=0x8837520, _cmd=0x2080ecb, application=0x8809870) at /Users/ram/Documents/Tweet 2/Classes/TwitUpdateAppDelegate.m:48
#9 0x00616f80 in -[UIApplication _callInitializationDelegatesForURLayload:suspend ed:]()
#10 0x006193b0 in -[UIApplication _runWithURLayload:launchOrientation:statusBarSty le:statusBarHidden:]()
#11 0x006233ec in -[UIApplication handleEvent:withNewEvent:]()
#12 0x0061bb3c in -[UIApplication sendEvent:]()
#13 0x006209bf in _UIApplicationHandleEvent()
#14 0x034d2822 in PurpleEventCallback()
#15 0x02aa9ff4 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FU NCTION__()
#16 0x02a0a807 in __CFRunLoopDoSource1()
#17 0x02a07a93 in __CFRunLoopRun()
#18 0x02a07350 in CFRunLoopRunSpecific()
#19 0x02a07271 in CFRunLoopRunInMode()
#20 0x00618c6d in -[UIApplication _run]()
#21 0x00624af2 in UIApplicationMain()
#22 0x00002c20 in main (argc=1, argv=0xbffff0a4) at /Users/ram/Documents/Tweet 2/main.m:14
誰能告訴我這裏有什麼問題嗎?我嘗試了與其他應用程序的代碼,沒有執行admob sdk的問題。如果有人能幫助我,這將是非常棒的。過去幾天我非常努力地工作,我無法弄清楚問題出在哪裏。 我甚至嘗試使用Instruments
和NSZombieEnabled
運行它,不知何故,我認爲這個問題是由於[GADCachedFile fileModificationDate]
這我不知道在哪裏,這是來自AdMob SDK稱爲