cocos xcode9 system 废除 xcode9 'system' is unavailable: not available on iOS
http://www.cocoachina.com/bbs/read.php?tid=1725915&page=1&toread=1#tpc
http://www.cocoachina.com/bbs/read.php?tid-1721617-page-e-fpage-1.html
修改添加代码:
namespace
{
#if (CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID)
int unlink_cb(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf)
{
int rv = remove(fpath);
if (rv)
perror(fpath);
return rv;
}
#endif
}
nftw(_storagePath.c_str(), unlink_cb, 64, FTW_DEPTH | FTW_PHYS);
[ 此帖被creas_tall在2017-09-20 17:02重新编辑 ]
图片:bbbbbbbbbbbbbbbbb.jpg
图片:aaaaaaaaaaaaaaa.jpg
一个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");
这样项目就可以正常编译了。
Cocos2dx官网尚未给出解决方案,目前这个解决方案暂时还没发现问题。
cocos xcode9 system 废除 xcode9 'system' is unavailable: not available on iOS相关推荐
- java 的 System.getenv() 和 System.getProperty()
概述 java中提供了 System.getenv() 和 System.getProperty() 两个方法可以获取系统的环境变量和java程序相关的信息. Java提供了System类的静态方法g ...
- matlab system object,通过 System object 实现模块
使用 System object 实现您自己的算法. The System object source code controls the appearance of the block dialog ...
- System.Math.Min(System.Threading.Interlocked.Increment(i), i - 1)
System.Math.Min(System.Threading.Interlocked.Increment(i), i - 1) 在vb里面 等价于i=i-1 在C#里面 等价于i-- 是有C#自 ...
- java system.setproperties_在JAVA中 System.getProperty 和 System.setProperty 方法.
今天着手研究TOMCAT源码. 在刚開始的时候Startup类中init方法中调用非常多次System.getProperty和System.setProperty的方法. 后来经过网上搜索才得知,这 ...
- 使用系统规则测试System.in和System.out
编写单元测试是软件开发的组成部分. 当您的被测类与操作系统交互时,您必须解决的一个问题是模拟其行为. 这可以通过使用模拟代替Java Runtime Environment(JRE)提供的实际对象来完 ...
- java system类_Java System类mapLibraryName()方法及示例
java system类 系统类mapLibraryName()方法 (System class mapLibraryName() method) mapLibraryName() method is ...
- (70)FPGA模块调用(system Verilog调用system Verilog)
(70)FPGA模块调用(system Verilog调用system Verilog) 1.1 目录 1)目录 2)FPGA简介 3)Verilog HDL简介 4)FPGA模块调用(system ...
- webConfig中System.Web 和 System.WebServer节点读取
webConfig中System.Web 和 System.WebServer节点读取根据应用程序池中托管管道模式有关. 在网站发布到服务器的IIS上时,应用程序池中托管管道模式分为经典和集成. Sy ...
- System.out和System.err的区别
public class TestCodeSeg {static{System.out.println("1");}{System.out.println("2" ...
最新文章
- localStorage 真正的本地缓存
- python中isinstance是什么意思_isinstance在python中的意思是什么?
- 前几行 python_调包侠神器2.0发布,Python机器学习模型搭建只需要几行代码
- Arm TrustZone 学习 - 0.3 向 OPTEE 添加用户自己的 TA/CA
- Tips/Tricks#4:不同页面之间传递值
- 读《研发的那些事》有感
- Mybatis笔记 - SQL标签方法
- win10+Python3.7.3+OpenCV3.4.1入门学习(十一 图像金字塔)————11.1 图像金字塔理论基础
- initializing of server in progress as process 4656
- win7文件和文件夹可以重名吗_怎么取消WIN7复制同名文件自动重命名
- Mybatis查询oracle之clob类型
- Ubuntu下软件安装的方法(配图解)
- 微机原理8253计数初值计算
- FT60F011A/FT60F010A为辉芒微电子基本I/O型系列Flash单片机SOT23-6/SOP8
- 无线wifi与802.1x 说明
- 一个本土科技精英的近况
- Photoshop照片转手绘效果动作分享
- 企业是该重新审视《个人信息保护法》了
- idea已经导入了数据库jar包无法连接数据库
- Inter SIU520 Log阅读
热门文章
- 老子《道德经》第十六章
- Docker镜像报错:Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request cance
- NEXTCLOUD+onlyoffice的搭建和使用
- Kafka消费者原理解析
- Top 5 个功能强大免费开源的数据可视化平台
- E - Max Min(尺取(线性时间找包含两个数的区间有多少))
- 神经网络与相对论质量和能量守恒
- 专家:应对禽流感需储备不同种药物
- U盘数据读不出怎么恢复
- 【TB-02模组专题⑤】微信小程序通讯TB02 模块控制 STM32 单片机LED灯