Cocos2d:从文件(sprites35.png)获取数据失败!在设备上测试但在模拟器上工作时

时间:2013-08-06 18:09:39

标签: iphone cocos2d-x

我想在我的iphone 5设备中测试我的应用程序并且我得到了这个错误 注意!这在xcode和iphone模拟器上工作正常:

Cocos2d: cocos2d: CCSpriteFrameCache: Trying to use file sprites35.png as texture
Cocos2d: Get data from file(sprites35.png) failed!
Cocos2d: cocos2d: CCSpriteFrameCache: Couldn't load texture

这是加载文件的简单代码:

void GameLayer::loadImages()
{
    CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("sprites35.plist");
    m_gameBatchNode  = CCSpriteBatchNode::create("sprites.png",200);
    this->addChild(m_gameBatchNode,2,kSSheet);
    m_background  = CCSprite::create("gride300_300.png");
    m_background->setPosition(ccp(m_winSize.width/2,m_winSize.height/2));  
    this->addChild(m_background,kGrid);

}

我在这里失踪了什么?

更新
答案是 : How to Empty Caches and Clean All Targets Xcode 4

0 个答案:

没有答案