Friday, September 2, 2022
HomeGame DevelopmentI have to replace due to the app crash - C++

I have to replace due to the app crash – C++

In the previous, I launched a recreation utilizing the cocos2d-x 3.8.1 model.

This app remains to be on the App Store.

But I see quite a lot of critiques that the app immediately ends whereas operating.

So I believe I have to replace the app, which model of Cocos2d-x ought to I replace? Is 3.17.2 good? Or is 4.0 higher?

And what’s the quickest solution to replace the engine?

For iOS or Mac it’s important to use cocos2d-x 4.0 and for android 3.17.2 is finest

Thank you very a lot on your reply.

My recreation must help each iOS and Android.

Should I take advantage of model 3.17.2 then?
Can’t the three.17.2 model help two platforms (ios, Android)?

sure, you need to use 3.17.2 for each ios and android however it’s endorsed that you just use 4.0 for ios and three.17.2 for android.

Use of v3.17.2 shouldn’t be really helpful as will probably be rejected by the iOS overview course of.
This is as a result of it makes use of UIWebView internally.
It have to be modified to WKWebView.

The newest model of v3 accessible from github has this repair, so utilizing the most recent model of v3 will help each iOS and Android.

If you’ve the git and python instructions prepared, you will get the most recent model of v3.
You will likely be engaged on the command line.

As a preliminary step, run the next command

$ git config --global url."https://".as an alternativeOf git://

You will want python 2.x.
The setting I examined is CentOS8, so the command title is python2.

$ python2 -V
Python 2.7.18

Now all it’s important to do is run the instructions so as.

git clone
cd cocos2d-x/
git checkout v3
git submodule replace --init
cd instruments/cocos2d-console/

Thank you very a lot on your reply. I proceeded as you advised me.

But within the ultimate instruction(python2 following error occurred.

==> Preparing to obtain console binaries!
==> model file would not exist
==> Ready to obtain '' from ''
Traceback (most up-to-date name final):
  File "", line 301, in <module>
  File "", line 296, in major"", opts.remove_downloaded, opts.force_update, opts.download_only)
  File "", line 241, in run
  File "", line 203, in download_zip_file
  File "", line 91, in download_file
    u = urllib2.urlopen(self._url)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 154, in urlopen
    return, knowledge, timeout)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 429, in open
    response = self._open(req, knowledge)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 447, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 407, in _call_chain
    consequence = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1241, in https_open
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1198, in do_open
    increase URLError(err)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificates confirm failed (_ssl.c:727)>

I don’t know if that is achieved correctly.

I’ve yet one more query.

Can’t model 4.0 help two platforms? Does model 4.0 help Android?

I ponder why you don’t suggest 4.0 for Android.

Of course, v4 can help iOS and Android.
The purpose I really helpful v3 is just because I’ve by no means used v4.
I can not suggest one thing I’m not utilizing.

I’m at present utilizing v3 and have a observe report of updating the app on iOS and Android only a few days in the past.
The purpose I’m nonetheless utilizing v3 is easy.
I’ve not been capable of migrate as a result of the third celebration libraries I take advantage of will not be but appropriate with 4.0.

I share the most recent model of the v3 zip file created in my setting on Google Drive.
You can use it for those who like.

Probably finest to make use of v4, however as already talked about I’ve no expertise with v4 but.

Thank you very a lot on your reply.Thank you past phrases.

Can I ask you yet one more query?

How do I replace the cocos2d-x engine of the my venture?

The methodology I used is as follows.

I changed the cocos2d folder of my venture with the folder you gave me.

After that, I cleaned and constructed the xcode.

Doing so resulted within the following error:

[‘Box2D/Box2D.h’ file not found]

What did I do incorrect?

I didn’t discover that error as a result of I don’t use Box2D.
The Box2D folder is situated at


Since the trail to cocos2d/cocos is meant to be included within the embrace search path
You could possibly embrace it with a modification like this.

#embrace "../exterior/Box2D/Box2D.h"

Or, modify the XCode configuration so as to add cocos2d/exterior to the embrace search path.
That’s all of the concepts I’ve for now.

I don’t assume crash has a relation with updating your engine.
Problem is probably going at your finish.

You can entry the crash log from xcode->organiser->crashes-> choose model.
This will help you resolve the bug.

Thank you very a lot on your reply.

Thank you very a lot on your reply



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments