iPhone 4s IOS 7.1.2 adMob crash after response from admob server

  • vaidgar
    Likes 0

    Problem Description

    I run my application on iPhone 4s IOS 7.1.2 It crash on main.
    Problem in SonarCocosHelper::AdMob::showBannerAd();
    It happens only on iPhone 4s IOS 7.1.2
    I run on simulator iPhone 4s IOS 8.1 everything works well

    Crash is not immediately, comes some time. I think crash after response from admob server. When application must show banner.

    Log print 

    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. CCEAGLView's implementation of -layoutSubviews needs to call super.'

    *** First throw call stack:

    (0x2dabaf83 0x3826bccf 0x2dabae5d 0x2e468d5b 0x302d7e19 0x2ff5562b 0x2ff50e3b 0x2ff50ccd 0x2ff506df 0x2ff504ef 0x2ffa3c49 0x32d1c75d 0x2e7a6451 0x2da7aea9 0x2da85a67 0x2da85a03 0x2da841d7 0x2d9eeebf 0x2d9eeca3 0x328f4663 0x3033b14d 0x81a87 0x38778ab7)

    libc++abi.dylib: terminating with uncaught exception of type NSException

    How to fix it ?
    Help me please.

  • Sonar Systems admin
    Likes 0

    Can you show us your code

  • vaidgar
    Likes 0

    I created test project, like tutorial sonarsystem.
    In init HelloWorldScene

    SonarCocosHelper::IOS::Setup();
    SonarCocosHelper::AdMob::showBannerAd();

  • Sonar Systems admin
    Likes 0

    AdMob does have an issue with older iOS versions, frankly over 90% of users are on iOS 8.0 and above so nothing to worry about.

  • vaidgar
    Likes 0

    Thanx for answer.
    I will try connect iAd instead Admob


  • Sonar Systems admin
    Likes 0

    Cool     

Login to reply