Meteoric Stream - Original Apps & Music, Piano Instrumental, Children music, Hymns


Japanese | English
Meteoric Stream -> Documentation -> Cocos2d-x -> [FIXED] Can not run simulator with cocos2d-x on Mac OS

[FIXED] Can not run simulator with cocos2d-x on Mac OS

In using cocos2d-x 3.15 with Mac OS, an error appears that
"tmpIOSVer = float(match.group(3))
ValueError: invalid literal for float(): 10.3.1", and couldn't run simulator.

Go to directory of cocos, open "tools/cocos2d-console/plugins/plugin_run/project_run.py",

And find "tmpIOSVer = float(match.group(3))",
Change it to below,

Before:
                   tmpIOSVer = float(match.group(3))
After:
                    tmpMatch = match.group(3).split('.');
                    tmpIOSVer = float(tmpMatch[0] + "." + tmpMatch[1]);
                    #tmpIOSVer = float(match.group(3))

Lastupdated:2017/11/15
Wrote by:2017/09/01

Share this article

Related







Go To Documentation Top
Meteoric Stream -> Documentation -> Cocos2d-x -> [FIXED] Can not run simulator with cocos2d-x on Mac OS
Go to Top