Xcode9.0 编译时报错:Call to unavailable function 'system': not available on iOS
来源:互联网 发布:linkin 大数据平台 编辑:程序博客网 时间:2024/05/01 09:41
刚升级把Xcode升级到9.0后,编译 Cocos-JS 工程到 iOS设备时,Xcode9 报错:Call to unavailable function ‘system’: not available on iOS.
Xcode8 是正常的。
GG 说 iOS11 的新更新已经将 system 删除,需要将报错的代码:
/Data/Items/study/Cocos/Cocos-js/Nanolink/frameworks/cocos2d-x/cocos/platform/CCFileUtils.cpp 第 1156 行 if (system(command.c_str()) >= 0);
修改为:if (popen(command.c_str(), “r”))
目前 Cocos 还没给出官方解决办法,官方回复后可以参考官方解决方法,目前只能先这样临时解决下。
阅读全文
0 0
- Xcode9.0 编译时报错:Call to unavailable function 'system': not available on iOS
- cocos2d-x 3.3连接Xcode9编译时报错:call to unavailable function system not available on ios
- xcode9 cocos 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问题的解决方案
- unavailable function 'system': not available on iOS
- unavailable function 'system': not available on iOS
- unavailable function 'system': not available on iOS xcode 升级后 cocos项目报错
- 'system' is unavailable: not available on iOS
- 更新了Xcode, 报错:'system' is unavailable: not available on iOS
- Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior t
- Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior t
- Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior t
- 警告:Attribute Unavailable Automatic Preferred Max Layout Width is not available on iOS versions pri
- 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based
- mysql基本的查询语法,持续更新中ing...
- Jmeter 测试 RabbirMQ 性能
- PHP中IP地址处理
- mybatis 根据 数据库表 自动生成 实体
- scrollToBottom、scrollToTop、scrollToPercentVertical 等设置无效
- Xcode9.0 编译时报错:Call to unavailable function 'system': not available on iOS
- 使用mingw-get.exe命令行工具在Windows平台上安装C++等语言的编译工具
- 互斥锁 pthread_mutex_init()函数
- window环境下Android抓包工具charles的使用
- Android Baidu定位的简单使用
- 将时间格式转换为带am pm的这种
- 737. Sentence Similarity II
- Scrapy爬取网易云音乐和评论(三、爬取歌手)
- 利用AS(3.0)工具将工程打包成jar