之前都很好,在我把macox系统升级到10.11,xcode升级到xcode7之后
2.2.6的mac项目编译通过之后,运行报错,ios项目可以正常运行,错误如下:
libc++abi.dylib: terminating with uncaught exception of type std::logic_error: basic_string::_S_construct NULL not valid
打印定位错误,可知道,错误出现在 pDirector->setOpenGLView(pEGLView); 中,十分困惑,求高人帮助!!!!
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
CCDirector* pDirector = CCDirector::sharedDirector();
CCEGLView* pEGLView = CCEGLView::sharedOpenGLView();
pDirector->setOpenGLView(pEGLView);
。。。。。。
}
,2.2.6好老了,现在都3.8.1了,官方在3.8.1中解决了xcode7编译报错的问题