在項目中遇到直接崩潰在CCDirector.h 系統(tǒng)文件,報錯如下
'stack' file not found

問題分析:
從網(wǎng)上看到資料說可能原因有如下幾個:
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中出現(xiàn)了不同語言的代碼。
解決方法:
1.把alioss.m改成abioss.mm
2.把XXConstants.h中不同語言的代碼轉(zhuǎn)化成相同的編程語言