Saturday, September 3, 2022
HomeGame DevelopmentI must replace due to the app crash - C++

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


Up to now, I launched a sport utilizing the cocos2d-x 3.8.1 model.

This app continues to be on the App Retailer.

However I see a variety of opinions that the app all of the sudden ends whereas working.

So I feel I must 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 a must to use cocos2d-x 4.0 and for android 3.17.2 is finest

Thanks very a lot on your reply.

My sport must assist each iOS and Android.

Ought to I exploit model 3.17.2 then?
Can’t the three.17.2 model assist two platforms (ios, Android)?

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

Use of v3.17.2 just isn’t really helpful as it is going to be rejected by the iOS evaluation course of.
It’s because it makes use of UIWebView internally.
It have to be modified to WKWebView.

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

When you’ve got the git and python instructions prepared, you may get the newest model of v3.
You’ll be engaged on the command line.

As a preliminary step, run the next command

$ git config --global url."https://".insteadOf git://

You will have python 2.x.
The surroundings I examined is CentOS8, so the command identify is python2.

$ python2 -V
Python 2.7.18

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

git clone https://github.com/cocos2d/cocos2d-x.git
cd cocos2d-x/
git checkout v3
python2 download-deps.py
git submodule replace --init
cd instruments/cocos2d-console/
python2 download-bin.py

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

However within the last instruction(python2 download-bin.py) following error occurred.

=======================================================
==> Getting ready to obtain console binaries!
==> model file would not exist
==> Able to obtain 'v3-console-16.zip' from 'https://github.com/cocos2d/console-binary/archive/v3-console-16.zip'
Traceback (most up-to-date name final):
  File "download-bin.py", line 301, in <module>
    foremost()
  File "download-bin.py", line 296, in foremost
    installer.run("", opts.remove_downloaded, opts.force_update, opts.download_only)
  File "download-bin.py", line 241, in run
    self.download_zip_file()
  File "download-bin.py", line 203, in download_zip_file
    self.download_file()
  File "download-bin.py", line 91, in download_file
    u = urllib2.urlopen(self._url)
  File "/Library/Frameworks/Python.framework/Variations/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, information, timeout)
  File "/Library/Frameworks/Python.framework/Variations/2.7/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, information)
  File "/Library/Frameworks/Python.framework/Variations/2.7/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Variations/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    consequence = func(*args)
  File "/Library/Frameworks/Python.framework/Variations/2.7/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/Library/Frameworks/Python.framework/Variations/2.7/lib/python2.7/urllib2.py", 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 executed correctly.

I’ve yet one more query.

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

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

In fact, v4 can assist iOS and Android.
The rationale I really helpful v3 is just because I’ve by no means used v4.
I can not advocate one thing I’m not utilizing.

I’m presently utilizing v3 and have a observe report of updating the app on iOS and Android only a few days in the past.
The rationale I’m nonetheless utilizing v3 is easy.
I’ve not been in a position to migrate as a result of the third occasion libraries I exploit are usually not but suitable with 4.0.

I share the newest model of the v3 zip file created in my surroundings on Google Drive.
You need to use it when you like.

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

Thanks very a lot on your reply.Thanks past phrases.

Can I ask you yet one more query?

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

The strategy I used is as follows.

I changed the cocos2d folder of my mission 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 improper?

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

cocos2d/exterior/Box2D/embody/Box2D/Box2D.h

For the reason that path to cocos2d/cocos is meant to be included within the embody search path
You could possibly embody it with a modification like this.

#embody "../exterior/Box2D/Box2D.h"

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

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

You’ll be able to entry the crash log from xcode->organiser->crashes-> choose model.
This might help you remedy the bug.

Thanks very a lot on your reply.

Thanks very a lot on your reply

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments