美文网首页
Cocos2d how to fix Crash When us

Cocos2d how to fix Crash When us

作者: 南国青天 | 来源:发表于2016-03-16 16:26 被阅读17次

    When I use Siri on the Cocos2d 3.4.9 framework always make crash.
    Following the crash of the stack.

    28281410-98D0-4C07-9542-BD36283AA394.png

    What's make crash reason?

    I find a article aboute the problem.
    The problem was Siri knocked out GL context that is why everthing crashed. and this fix will appear in 3.5. but if you want to do yourself right now. simply replace beginFrame method in CCGLView.m with this one line

    -(void)beginFrame { [EAGLContext setCurrentContext:self.context]; }
    

    相关文章

      网友评论

          本文标题:Cocos2d how to fix Crash When us

          本文链接:https://www.haomeiwen.com/subject/diwqlttx.html