1

我试图在我的 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

4

0 回答 0