在项目中遇到直接崩溃在CCDirector.h 系统文件,报错如下
'stack' file not found

问题分析:
从网上看到资料说可能原因有如下几个:
1. You are trying include C++ header in Objective-C implementation file.
2. You are trying include header twice. That can not clear for you, why compiler not indicate? Because one of this includes header through another header.
大致意思是由于在.m文件中混编添加了含有C++代码的类或者常量却没有把文件改成.mm混编文件造成的。从上面截图可以看到三个文件俩个类,说明在alioss文件中引入的XXConstans.h中出现了不同语言的代码。
解决方法:
1.把alioss.m改成abioss.mm
2.把XXConstants.h中不同语言的代码转化成相同的编程语言
网友评论