Xcodeのバージョンを9.0.0にした時に出たので一応記録しておきます
removeDirectory
{
if (path.size() > 0 && path[path.size() - 1] != '/')
{
CCLOGERROR("Fail to remove directory, path must terminate with '/': %s", path.c_str());
return false;
}
std::string command = "rm -r ";
// Path may include space.
command += "\"" + path + "\"";
if (system(command.c_str()) >= 0) //この行でエラーが発生!!
return true;
else
return false;
}
エラーの内容は
Call to unavailable function 'system': not available on iOS
以下のリンク先を参考にしたらうまくいきました。
https://github.com/spaceinch/cocos2d-x/commit/96c3061928af2536f969caf6ab00572c873a54ec