您的位置:首页 > 大数据 > 人工智能

call to unavailable function system not available on io 4000 s

2017-12-14 19:56 716 查看
一个cocos2d-x 3.3的项目,使用Xcode8.3.2正常编译。

但是连接Xcode9 beta编译时报错:call to unavailable function system not available on ios

原因是iOS11已经将system删除,需要将报错的代码AssetsManager.cpp的第683行system(command.c_str()); 

修改为:popen(command.c_str(), "r");

if (system(command.c_str()) > 0)改为popen(command.c_str(), "r") != nullptr
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐