-
QuakeDevLikes 0Problem Description
hello, sonar~!
i intergrated cocoshelper to my sample project.
sample admob banner ad and google play game service works fine on android.
but, admob helper has crash on ios.
only run project then call ‘SonarCocosHelper::AdMob::showBannerAd();’..
below my xcode logs :
========================================================================================================
{
gl.supports_vertex_array_object: true
cocos2d.x.version: cocos2d-x-3.9
gl.vendor: Apple Inc.
gl.supports_PVRTC: true
gl.renderer: Apple A8 GPU
cocos2d.x.compiled_with_profiler: false
gl.max_texture_size: 4096
gl.supports_ETC1: false
gl.supports_BGRA8888: false
cocos2d.x.build_type: DEBUG
gl.supports_discard_framebuffer: true
gl.supports_NPOT: true
gl.supports_ATITC: false
gl.max_samples_allowed: 4
gl.max_texture_units: 8
cocos2d.x.compiled_with_gl_state_cache: true
gl.supports_S3TC: false
gl.version: OpenGL ES 2.0 Apple A8 GPU - 75.11.5
}
libpng warning: iCCP: known incorrect sRGB profile
2016-01-11 22:42:07.956 NewGame-mobile[1163:530663] <Google> You must set the rootViewController property of <GADBannerView: 0x15cd8bf00; frame = (0 0; 320 50); clipsToBounds = YES; layer = <CALayer: 0x15cd85fc0>> before loading a request.
2016-01-11 22:42:08.024 NewGame-mobile[1163:530609] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSLayoutConstraint constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant:]: A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant. Location attributes must be specified in pairs'
*** First throw call stack:
(0x182e19900 0x182487f80 0x182e19848 0x1838bee94 0x183741554 0x1000e3a7c 0x1000e4614 0x1000e546c 0x1000e4a3c 0x1000e4c70 0x1000e46b4 0x1000e2e64 0x1001fc768 0x1000e6238 0x187b81704 0x187db0130 0x187db44b8 0x187db15c0 0x1843cf790 0x1843cfb10 0x182dd0efc 0x182dd0990 0x182dce690 0x182cfd680 0x187b7a580 0x187b74d90 0x1000e6878 0x18289e8b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
========================================================================================================
-
Sonar Systems adminLikes 1
Have you initialised Cocos Helper?
This reply has been verified.
-
QuakeDevLikes 0
Ooops!
ok, i missed ‘SonarCocosHelper::IOS::Setup();’.. :)
so, android not need initialize function??
-
Sonar Systems adminLikes 0
Nah :D
Login to reply