xcode9

xcode9 cocos2dx 里面system 方法不能用了,导致项目编译通不过。

官方有PR了,可以自己合一下

给个连接

xcode9 ‘system’ is unavailable: not available on iOS, cocos2dx 里面使用system这个方法的地方都报错,cocos2dx版本3.9.大神回复下

来个人回复一下

顶。。。。

https://lidalao.com/archives/39

我的cocos2d-x/external/lua/lua/loslib.c:39:22: error: ‘system’ is unavailable: not available on iOS
lua_pushinteger(L, system(luaL_optstring(L, 1, NULL))); 是lua目录下面的

static int os_execute (lua_State *L) {
// lua_pushinteger(L, system(luaL_optstring(L, 1, NULL)));
}

https://github.com/cocos2d/cocos2d-x/pull/17921

http://forum.cocos.com/t/ios-11/51617 刚新建了个帖子说明这个问题。