So I use these code below:
CCDictionary<std::string, CCObject *>**testPlist = CCFileUtils::dictionaryWithContentsOfFile(CCFileUtils::dictionaryWithContentsOfFile(“xxx.plist”);
Hi,all:
I’m convert these obj-c code to c++
>
NSString plistPath = pathForResource:"xxx" ofType:“plist”];
NSArrayanimImages = [NSArray arrayWithContentsOfFile:plistPath];
NSMutableArray **animFrames = ;
for {
spriteFrameByName:animImage]];
}
>
>
So I use these code below:
>
CCDictionary<std::string, CCObject *>**testPlist = CCFileUtils::dictionaryWithContentsOfFile(CCFileUtils::dictionaryWithContentsOfFile(“xxx.plist”);
>
but crash without any log.
>
How can I do?
Hi I too facing same issue.
as of my knowledge,
Check the source of plist file.
plist source can be josn or xml format.
if plist source in xml format the it’ll work. if it is json, then we get the same problem as you got.