Unity 4.6 | 4.7 AdMob iOS Crash
Hi, i'm using AdMob via Google Mobile Ads Plugin ( link ). It's working on Android, but crushing on iOS, right after unity splash shows up (does not reach my splash). I tested on: Unity 4.7.1f1 and 4.6.3f1 (IT'S WORKING in Unity 5.3.4), xCode 7.2.1 and 6.4, several versions of plugin and AdMob sdk, also some old without CocoaPods with manual framework integration. iPhone 4, iOS 7.1
Not working in new clean project without any references to plugin classes. Even if I delete all plugin files besides Plugins > iOS (.h .m files) and manually add GoogleMobileAds.framework in xCode. So something wrong with those files?
Problem occurs before Crashlytics initialize, so I don't have meaningful information about the error. No C# specific error in xCode console with script debugging enabled. Device log:
Version: 1.0 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2016-03-19 16:55:11.492 +0100
OS Version: iOS 7.1.2 (11D257)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xa001800c
Triggered by Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x38787626 objc_msgSend + 6
1 CoreFoundation 0x2df04188 CFBasicHashCreateCopy + 864
2 CoreFoundation 0x2df1eed2 CFDictionaryCreateCopy + 150
3 CoreFoundation 0x2df56492 -[__NSCFDictionary copyWithZone:] + 18
4 newlifebutton 0x008cc1f8 0x5b000 + 8851960
5 newlifebutton 0x0085d598 0x5b000 + 8398232
6 newlifebutton 0x0085cd30 0x5b000 + 8396080
7 Foundation 0x2e8f1484 -[__NSObserver _doit:] + 288
8 CoreFoundation 0x2df8f19e __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 10
9 CoreFoundation 0x2df034ea _CFXNotificationPost + 1714
10 Foundation 0x2e8eea38 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
11 UIKit 0x30859034 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1956
12 UIKit 0x30853566 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 710
13 UIKit 0x307ef6e4 -[UIApplication handleEvent:withNewEvent:] + 3536
14 UIKit 0x307ee84c -[UIApplication sendEvent:] + 68
15 UIKit 0x30852ca4 _UIApplicationHandleEvent + 612
16 GraphicsServices 0x32e07aea _PurpleEventCallback + 606
17 GraphicsServices 0x32e076d2 PurpleEventCallback + 30
18 CoreFoundation 0x2df97a64 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
19 CoreFoundation 0x2df979fe __CFRunLoopDoSource1 + 342
20 CoreFoundation 0x2df961d2 __CFRunLoopRun + 1394
21 CoreFoundation 0x2df00eba CFRunLoopRunSpecific + 518
22 CoreFoundation 0x2df00c9e CFRunLoopRunInMode + 102
23 UIKit 0x30851ecc -[UIApplication _run] + 756
24 UIKit 0x3084d148 UIApplicationMain + 1132
25 newlifebutton 0x000613aa 0x5b000 + 25514
26 libdyld.dylib 0x38c8aab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38d2d808 kevent64 + 24
1 libdispatch.dylib 0x38c79de8 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x38c68f6e _dispatch_mgr_thread$VARIANT$up + 34
Thread 2:
0 libsystem_kernel.dylib 0x38d40c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38da7bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38da7a94 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x38d40c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38da7bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38da7a94 start_wqthread + 4
Thread 4 name: GC Finalizer
Thread 4:
0 libsystem_kernel.dylib 0x38d3ff2c __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38da8f22 _pthread_cond_wait + 518
2 libsystem_pthread.dylib 0x38da9d60 pthread_cond_wait + 36
3 newlifebutton 0x00ffefe4 0x5b000 + 16400356
4 newlifebutton 0x00fe3474 0x5b000 + 16286836
5 newlifebutton 0x00ffb792 0x5b000 + 16385938
6 newlifebutton 0x010012b2 0x5b000 + 16409266
7 libsystem_pthread.dylib 0x38da9916 _pthread_body + 138
8 libsystem_pthread.dylib 0x38da9886 _pthread_start + 98
9 libsystem_pthread.dylib 0x38da7aa0 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x38d40c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38da7bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38da7a94 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x1552b290 r1: 0x30e1627d r2: 0x38f59f78 r3: 0x38f59f78
r4: 0x1552b290 r5: 0x16a17d50 r6: 0x16a18070 r7: 0x27da5e1c
r8: 0x2df98dfd r9: 0xa0018000 r10: 0x16a18080 r11: 0x00000017
ip: 0x38f31740 sp: 0x27da5de8 lr: 0x2df0418c pc: 0x38787626
cpsr: 0x70000030