错误代码:
1、ValueMap& Value::asValueMap()
{
CCASSERT(_type == Type::MAP, “The value type isn’t Type::MAP”);
return _field.mapVal;
}
2、
void SpriteFrameCache::addSpriteFramesWithDictionary(ValueMap& dictionary, Texture2D texture)
ValueMap& framesDict = dictionary"frames"].asValueMap();
3、
void SpriteFrameCache::addSpriteFramesWithFile(const std::string& plist)的
if (texture)
{
addSpriteFramesWithDictionary(dict, texture);
_loadedFileNames->insert(plist);
}
加粗是出错的代码,但是这个是android,android真机,win32,ios模拟机上都正常,但是到apple真机上,这段就出错了