2012-07-30 20 views
6

क्योंकि iAd दुनिया मैं AdMob की कोशिश करने का फैसला किया चारों ओर बिल्कुल काम नहीं करताAdMob एप्लिकेशन xcode iPhone दुर्घटनाओं

समस्या यह है कि जब मैं अनुप्रयोग शुरू कोई त्रुटि नहीं है लेकिन है जब मैं प्रेस खेलने खेल पूरे अनुप्रयोग क्रैश हो

त्रुटि ->

[GADBannerView निजी]: 14:: 12.676 ऐप्लिकेशन [1323: C07] * समाप्त एप्लिकेशन गैर मान्यता प्राप्त चयनकर्ता उदाहरण 0x9159e50 2012-07-30 09 के लिए भेजा देय टी ओ न आया हुआ अपवाद 'NSInvalidArgumentException', कारण: '- [GADBannerView निजी]: गैर मान्यता प्राप्त चयनकर्ता उदाहरण 0x9159e50 के लिए भेजा'

कोड ->

#import "GADBannerView.h" 
GADBannerView *_AbMob; 
@property(nonatomic,retain) GADBannerView *AbMob; 

मीटर

_AbMob =[[GADBannerView alloc]initWithFrame:CGRectMake(0.0,self.view.frame.size.height-195, 320, 50)]; 

    _AbMob.adUnitID = @"myNumber"; 
    _AbMob.rootViewController = self; 
    [self.view addSubview:_AbMob]; 



    GADRequest *r = [[GADRequest alloc] init]; 
    r.testing = YES; 

ब्रेकपॉइंट->

app`-[GADBannerView adSize] at GADBannerView.m:100: 
0x1f5c2: pushl %ebp 
0x1f5c3: movl %esp, %ebp 
0x1f5c5: pushl %esi 
0x1f5c6: subl $20, %esp 
0x1f5c9: calll 0x1f5ce     ; -[GADBannerView adSize] + 12 at GADBannerView.m:101 
0x1f5ce: popl %esi 
0x1f5cf: movl 217414(%esi), %eax 
0x1f5d5: movl %eax, 4(%esp) 
0x1f5d9: movl 12(%ebp), %eax 
0x1f5dc: movl %eax, (%esp) 
0x1f5df: calll 0x32022     ; symbol stub for: objc_msgSend 
0x1f5e4: movl 217442(%esi), %ecx 
0x1f5ea: movl %ecx, 4(%esp) 
0x1f5ee: movl %eax, (%esp) 
0x1f5f1: calll 0x32022     ; symbol stub for: objc_msgSend 
0x1f5f6: movl 8(%ebp), %ecx 
0x1f5f9: testl %eax, %eax 
0x1f5fb: je  0x1f618     ; -[GADBannerView adSize] + 86 at GADBannerView.m:101 
0x1f5fd: movl 217402(%esi), %edx 
0x1f603: movl %edx, 8(%esp) 
0x1f607: movl %eax, 4(%esp) 
0x1f60b: movl %ecx, (%esp) 
0x1f60e: calll 0x32034     ; symbol stub for: objc_msgSend_stret 
0x1f613: addl $16, %esp 
0x1f616: jmp 0x1f62f     ; -[GADBannerView adSize] + 109 at GADBannerView.m:101 
0x1f618: movl $0, 4(%ecx) 
0x1f61f: movl $0, (%ecx) 
0x1f625: movl $0, 8(%ecx) 
0x1f62c: addl $20, %esp 
0x1f62f: popl %esi 
0x1f630: popl %ebp 
0x1f631: ret $4 

अपवाद 0x1f5e4: movl 217442(%esi), %ecx

+0

स्पष्ट रूप से तैनात कोड के साथ गलत कुछ भी नहीं है। Unrecoginzed चयनकर्ता पर एक ब्रेकपॉइंट सेट करें (यह [प्रश्न] देखें (http://stackoverflow.com/questions/7354169/breaking-on-unrecognized-selector)) और डीबगर ब्रेकपॉइंट हिट करने के बाद पूर्ण स्टैकट्रैक पोस्ट करें। – Codo

उत्तर

17

पर मैं अभी भी इस समस्या में पड़ गए। मैंने -all_load लिंकर ध्वज का उपयोग किया।

यहां आपको जिस लिंक की आवश्यकता है वह यहां है।

https://developers.google.com/mobile-ads-sdk/docs/#incorporating

+1

वोट दिया गया, आप मेरी जिंदगी सुरक्षित रखते हैं: डी – vietnguyen09

+0

क्या आपका मतलब है कि इसे 'all_load' को हटाना होगा? मैंने इसे हटा दिया है, लेकिन फिर भी समस्या – Gank

+0

आपको '-all_load' लिंकर ध्वज जोड़ने की आवश्यकता है। – David

संबंधित मुद्दे