-[NSConcreteNotification imaMessage]: unrecognized selector sent to instance 0x7fcca36ae230
2015-08-29 22:23:42.567 MBPlayerDemo[43916:1949301] Uncaught exception -[NSConcreteNotification imaMessage]: unrecognized selector sent to instance 0x7fcca36ae230
2015-08-29 22:23:42.609 MBPlayerDemo[43916:1949301] Stack trace: (
0 CoreFoundation 0x00000001022efc65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000101873bb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001022f70ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010224d13c ___forwarding___ + 988
4 CoreFoundation 0x000000010224ccd8 _CF_forwarding_prep_0 + 120
5 MBPlayerDemo 0x0000000100c14212 -[IMAJavascriptBridge handleMessageInitialized:] + 157
6 CoreFoundation 0x00000001022bf54c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
7 CoreFoundation 0x00000001021bda04 _CFXNotificationPost + 2484
8 Foundation 0x00000001013ca968 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
9 MBPlayerDemo 0x0000000100c15a9e -[IMAJavascriptSession didReceiveMessage:] + 316
10 MBPlayerDemo 0x0000000100c14e47 -[IMAJavascriptDispatcher processNewMessage:] + 310
11 MBPlayerDemo 0x0000000100c14a1e -[IMAJavascriptDispatcher processNewMessageWithChannelName:data:] + 144
12 MBPlayerDemo 0x0000000100c144f2 -[IMAJavascriptBridge webView:didReceiveMessage:] + 165
13 MBPlayerDemo 0x0000000100c2723d -[IMAWKWebView userContentController:didReceiveScriptMessage:] + 164
14 WebKit 0x0000000100e8379e _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyERNS0_13WebFrameProxyERN7WebCore21SerializedScriptValueE + 434
15 WebKit 0x0000000100f04049 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageEPN3IPC10ConnectionEyyyRKNS1_13DataReferenceE + 203
16 WebKit 0x0000000100e676f4 _ZN3IPC13handleMessageIN8Messages29WebUserContentControllerProxy14DidPostMessageEN6WebKit29WebUserContentControllerProxyEMS5_FvPNS_10ConnectionEyyyRKNS_13DataReferenceEEEEvS7_RNS_14MessageDecoderEPT0_T1_ + 134
17 WebKit 0x0000000100ddf048 _ZN3IPC18MessageReceiverMap15dispatchMessageEPNS_10ConnectionERNS_14MessageDecoderE + 120
18 WebKit 0x0000000100f1de1a _ZN6WebKit15WebProcessProxy17didReceiveMessageEPN3IPC10ConnectionERNS1_14MessageDecoderE + 24
19 WebKit 0x0000000100d66d5a _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_14MessageDecoderENS1_14default_deleteIS3_EEEE + 94
20 WebKit 0x0000000100d69774 _ZN3IPC10Connection18dispatchOneMessageEv + 110
21 JavaScriptCore 0x0000000105459436 _ZN3WTF7RunLoop11performWorkEv + 454
22 JavaScriptCore 0x0000000105459cea _ZN3WTF7RunLoop11performWorkEPv + 26
23 CoreFoundation 0x0000000102223431 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
24 CoreFoundation 0x00000001022192fd __CFRunLoopDoSources0 + 269
25 CoreFoundation 0x0000000102218934 __CFRunLoopRun + 868
26 CoreFoundation 0x0000000102218366 CFRunLoopRunSpecific + 470
27 GraphicsServices 0x000000010497ba3e GSEventRunModal + 161
28 UIKit 0x0000000102efd900 UIApplicationMain + 1282
29 MBPlayerDemo 0x0000000100c09bde main + 142
30 libdyld.dylib 0x0000000107de9145 start + 1
31 ??? 0x0000000000000001 0x0 + 1
)
2016-01-08 17:19:15.423 StartDelay[81156:12155175] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteNotification imaMessage]: unrecognized selector sent to instance 0x7fcd0b30e3c0'
*** First throw call stack:
(
0 CoreFoundation 0x00000001017fae65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010400edeb objc_exception_throw + 48
2 CoreFoundation 0x000000010180348d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010175090a ___forwarding___ + 970
4 CoreFoundation 0x00000001017504b8 _CF_forwarding_prep_0 + 120
5 StartDelay 0x0000000100be7921 -[IMAJavascriptBridge handleMessageInitialized:] + 157
6 CoreFoundation 0x00000001017c769c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
7 CoreFoundation 0x00000001017c73db _CFXRegistrationPost + 427
8 CoreFoundation 0x00000001017c7142 ___CFXNotificationPost_block_invoke + 50
9 CoreFoundation 0x000000010180c972 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1986
10 CoreFoundation 0x00000001016c2279 _CFXNotificationPost + 633
11 Foundation 0x0000000101dad109 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
12 StartDelay 0x0000000100be94a2 -[IMAJavascriptSession didReceiveMessage:] + 304
13 StartDelay 0x0000000100be8838 -[IMAJavascriptDispatcher processNewMessage:] + 310
14 StartDelay 0x0000000100be83fb -[IMAJavascriptDispatcher processNewMessageWithChannelName:data:] + 144
15 StartDelay 0x0000000100be7e63 -[IMAJavascriptBridge webView:didReceiveMessage:] + 165
16 StartDelay 0x0000000100c00129 -[IMAWKWebView userContentController:didReceiveScriptMessage:] + 164
17 WebKit 0x0000000103c63299 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyERNS0_13WebFrameProxyERKNS0_18SecurityOriginDataERN7WebCore21SerializedScriptValueE + 217
18 WebKit 0x0000000103c0e4ef _ZN6WebKit29WebUserContentControllerProxy14didPostMessageERN3IPC10ConnectionEyyRKNS_18SecurityOriginDataEyRKNS1_13DataReferenceE + 221
19 WebKit 0x0000000103c101e4 _ZN3IPC13handleMessageIN8Messages29WebUserContentControllerProxy14DidPostMessageEN6WebKit29WebUserContentControllerProxyEMS5_FvRNS_10ConnectionEyyRKNS4_18SecurityOriginDataEyRKNS_13DataReferenceEEEEvS7_RNS_14MessageDecoderEPT0_T1_ + 142
20 WebKit 0x0000000103a6ee95 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_14MessageDecoderE + 113
21 WebKit 0x0000000103bf1b8c _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_14MessageDecoderE + 24
22 WebKit 0x0000000103a2cdca _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_14MessageDecoderENS1_14default_deleteIS3_EEEE + 102
23 WebKit 0x0000000103a2f092 _ZN3IPC10Connection18dispatchOneMessageEv + 114
24 JavaScriptCore 0x000000010d178b05 _ZN3WTF7RunLoop11performWorkEv + 437
25 JavaScriptCore 0x000000010d1791e2 _ZN3WTF7RunLoop11performWorkEPv + 34
26 CoreFoundation 0x0000000101726a31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
27 CoreFoundation 0x000000010171c95c __CFRunLoopDoSources0 + 556
28 CoreFoundation 0x000000010171be13 __CFRunLoopRun + 867
29 CoreFoundation 0x000000010171b828 CFRunLoopRunSpecific + 488
30 GraphicsServices 0x0000000104fb7ad2 GSEventRunModal + 161
31 UIKit 0x00000001024ef610 UIApplicationMain + 171
32 StartDelay 0x0000000100be11dd main + 109
33 libdyld.dylib 0x0000000106d1e92d start + 1
34 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/xbz33qCr1Ik/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.
Hi Girish,
I believe the issue that you are facing is due to duplicate symbols being used by both the IMA and Mobile Ads SDK. Here is how I would suggest you to setup your project to include both the SDK's - - First download the sample project for IMA. For this example, download the Basic Example for SWIFT. Next update the pod file to only include this - pod 'GoogleAds-IMA-iOS-SDK-For-AdMob' . Basically this pod would include both the IMA and AdMob SDK and would fix your duplicate symbols issue.
- Next, the IDE would still likely throw the 'non-modular' error. The simplest way to fix this without changing the Linker Flags would be to open in Xcode -> Pods -> Pods -> GoogleAds-IMA-iOS-SDK-For-AdMob -> Frameworks -> GoogleInteractiveMediaAds.framework -> Headers -> GoogleInteractiveMediaAds.h and change it to the following -
#import "IMAAVPlayerContentPlayhead.h"
#import "IMAAVPlayerVideoDisplay.h"
#import "IMAAd.h"
#import "IMAAdDisplayContainer.h"
#import "IMAAdError.h"
#import "IMAAdEvent.h"
#import "IMAAdPlaybackInfo.h"
#import "IMAAdPodInfo.h"
#import "IMAAdsLoader.h"
#import "IMAAdsManager.h"
#import "IMAAdsRenderingSettings.h"
#import "IMAAdsRequest.h"
#import "IMACompanionAdSlot.h"
#import "IMAContentPlayhead.h"
#import "IMAPictureInPictureProxy.h"
#import "IMASettings.h"
#import "IMAStreamManager.h"
#import "IMAStreamRequest.h"
#import "IMAUiElements.h"
#import "IMAVideoDisplay.h"- Basically we are trying to directly import the header file here in the IMA SDK. That's it.
I have also attached a sample project that includes both the SDK's.
Project: Link
Thanks,Veer Arjun BusaniMobile Ads SDK Team