This method works fine in windows, but when I run my game on iOS simulator, it crashed.
After debug the program, I found when cocos2d-x using libxml to parse the plist file, it failed.
In the method:CCDictMaker::dictionaryWithContentsOfFile, when it called xmlSAXUserParseMemory,
this function return 4, not 0, which means something wrong. And CCDictMaker::dictionaryWithContentsOfFile return a null pointer.
Lately, cocos2d-x call a function on this null pointer, of course it will crashed.
So can anyone explain what’s wrong with it?
Did cocos2d-x team test it on iOS simulator?