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
但是连接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
相关文章推荐
- cocos2d-x 3.3连接Xcode9编译时报错:call to unavailable function system not available on ios
- Call to unavailable function 'system': not available on iOS
- call to unavailable function system not available on ios 解决方案
- Xcode9.0 编译时报错:Call to unavailable function 'system': not available on iOS
- xcode9 cocos call to unavailable function system not available on ios
- Xcode9.0 编译时报错:Call to unavailable function 'system': not available on iOS
- call to unavailable function system not available on ios问题解决
- Call to unavailable function 'system': not available on iOS问题的解决方案
- Call to unavailable function 'system': not available on iOS问题的解决方案
- Call to unavailable function 'system': not available on iOS问题的解决方案
- Call to unavailable function 'system': not available on iOS问题的解决方案
- cocos2d-x 3.3连接Xcode9编译时报错:call to unavailable function system not available on ios
- 解决Call to unavailable function 'system': not available on iOS
- all to unavailable function system not available on ios 解决方法
- unavailable function 'system': not available on iOS
- unavailable function 'system': not available on iOS
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.
- Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings.