cocos2dx-cpp-sample icon indicating copy to clipboard operation
cocos2dx-cpp-sample copied to clipboard

error: call to unavailable function 'system': not available on iOS

Open solodon4 opened this issue 7 years ago • 0 comments

I was following your instructions to build sample firebase cocos2d-x project for Analytics and got this error:

sample/sample_project/cocos2d/cocos/platform/CCFileUtils.cpp:1156:9: error: call to unavailable function 'system': not available on iOS
    if (system(command.c_str()) >= 0)
        ^~~~~~

You guys need to cherry pick this fix to resolve the issue: remove "system" usage #17921 which I applied locally and was able to get the project build and run.

solodon4 avatar May 21 '18 03:05 solodon4