[SOLVED] Appodeal 2.0.3.4 crash cocos2d-x 3.10

[SOLVED] Appodeal 2.0.3.4 crash cocos2d-x 3.10
0.0 0

#1

I have manualy integrated Appeal 2.0.3.4 by documentation.
I add -ObjC to Other Linking Flags in xCode(but this step is missing in the documentation)
App crashes shortly after launch. There is no problem in Android

2016-02-23 19:32:28.506 mahjong-mobile[1090:450831] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle initWithURL:]: nil URL argument'
*** First throw call stack:
(0x252422eb 0x24a0edff 0x25242231 0x259f58e1 0x259f5877 0x1ecf03 0x1ec32f 0x2c178c1 0x1ec29d 0x1f07dd 0x186829 0x186b53 0x17a6ed 0x19c3bb 0x17a6ed 0x17b11f 0x2c16cbf 0x2c16cab 0x2c1b771 0x25204fc5 0x252034bf 0x25155bb9 0x251559ad 0x263cfaf9 0x29441fb5 0x14d933 0x24e08873)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Thank you!


#2

Hello @krymenko

SDKBOX currently removed the dependency on -ObjC linker flag by internally adding it in the plugins.
Could you remove the linker flag and let us know, whether it works for you… !!

Best,
Pabitra


#3

Hello!
Problem is sloved!
Folder with resources was added incorrect.
Correct way is like in this picture:


#4

i am also getting same error. Appodeal works in android but only shows loader bar in iphone and nothing happens…

@pabitrapadhy I also removed -ObjC flags - it gave me this error -

2017-11-07 23:25:33.316 Dail-mobile[2509:40892] -[APDFactory legacySdkWithApiKey:types:autocacheMask:]: unrecognized selector sent to instance 0x7fd8a2daa220
2017-11-07 23:25:33.616 Dail-mobile[2509:40892] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[APDFactory legacySdkWithApiKey:types:autocacheMask:]: unrecognized selector sent to instance 0x7fd8a2daa220'
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000109ed5e65 __exceptionPreprocess + 165
	1   libobjc.A.dylib                     0x000000010c1eedeb objc_exception_throw + 48
	2   CoreFoundation                      0x0000000109ede48d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
	3   CoreFoundation                      0x0000000109e2b90a ___forwarding___ + 970
	4   CoreFoundation                      0x0000000109e2b4b8 _CF_forwarding_prep_0 + 120
	5   Dail-mobile                    0x00000001063f1bbd +[Appodeal initializeWithApiKey:types:] + 96
	6   Dail-mobile                    0x00000001063ac1fe _ZN6sdkbox22AppodealWrapperEnabled10nativeInitERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbPKvNS_14PluginAppodeal6AdTypeE + 244
	7   Dail-mobile                    0x00000001063ae192 _ZN6sdkbox22AppodealWrapperEnabled6__initEbPKvNS_14PluginAppodeal6AdTypeE + 524
	8   Dail-mobile                    0x0000000105b57d0b _ZN11AppDelegate29applicationDidFinishLaunchingEv + 27
	9   Dail-mobile                    0x0000000105c46374 _ZN7cocos2d11Application3runEv + 36
	10  Dail-mobile                    0x0000000105bccad5 -[AppController application:didFinishLaunchingWithOptions:] + 997
	11  UIKit                               0x00000001088651f1 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272
	12  UIKit                               0x0000000108866397 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3415
	13  UIKit                               0x000000010886ccc6 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1760
	14  UIKit                               0x0000000108869e7b -[UIApplication workspaceDidEndTransaction:] + 188
	15  FrontBoardServices                  0x000000010deef754 -[FBSSerialQueue _performNext] + 192
	16  FrontBoardServices                  0x000000010deefac2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
	17  CoreFoundation                      0x0000000109e01a31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	18  CoreFoundation                      0x0000000109df795c __CFRunLoopDoSources0 + 556
	19  CoreFoundation                      0x0000000109df6e13 __CFRunLoopRun + 867
	20  CoreFoundation                      0x0000000109df6828 CFRunLoopRunSpecific + 488
	21  UIKit                               0x00000001088697cd -[UIApplication _run] + 402
	22  UIKit                               0x000000010886e610 UIApplicationMain + 171
	23  Dail-mobile                    0x0000000105bcd0d4 main + 100
	24  libdyld.dylib                       0x000000010c78192d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException 

How did you solve this issue?


Appodeal crashes
#5

Anybody?@pabitrapadhy ?


#6

U need the -ObjC flags, checkout our Appodeal example:


#7

Yes i just tried as @pabitrapadhy said and it gave me that error, so i put it back(-ObjC),

But still it shows loading bar for video ad and it never loads video.


#8

Let’s look into this issue in a separate thread