FirebaseExtended / cocos2dx-cpp-sample

Firebase Cocos2d-x samples
http://firebase.google.com/games
MIT License
53 stars 25 forks source link

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

Open solodon4 opened 6 years ago

solodon4 commented 6 years ago

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.