Cocos2d: Get data from file(sprites35.png) failed! when testing on device but working on the simulator

I tring to test my app in my iphone 5 device and im getting this error
Note! this is working fine on the xcode and the iphone simulator

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

this is my simple code that load the files :

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);

}

what im missing here ?

You should reset the simulator and run a clean in Xcode (command + shift +K i think).
Sometimes, when an incremental build is made resources that you deleted are not removed from the device or simulator.

You should also know that the sinulator is not case sensitive while the device is.

You see this: Trying to use file sprites35.png as texture
Because the texture referenced inside the plist is not found. Make sure you have int in the Resources folder in the xcode project.

Good luck!

i see something very strange , i did what you said i marked it then to build for test ( other option also didnt work )
all low case
its say that it failed to load sprites35.png , i dont have any where in the code png by this name . or in the plist file
here is the error massage again with one more error about the sprites.png

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
Cocos2d: Get data from file(sprites.png) failed!

here is my sprites35.plist

        frames
        
            gem1_tranc.png
            
                frame
                {{0,0},{35,35}}
                offset
                {0,0}
                rotated
                
                sourceColorRect
                {{0,0},{35,35}}
                sourceSize
                {35,35}
            

            gem2_tranc.png
            
                frame
                {{36,0},{35,35}}
                offset
                {0,0}
                rotated
                
                sourceColorRect
                {{0,0},{35,35}}
                sourceSize
                {35,35}
            

            gem3_tranc.png
            
                frame
                {{0,72},{35,35}}
                offset
                {0,0}
                rotated
                
                sourceColorRect
                {{0,0},{35,35}}
                sourceSize
                {35,35}
            

            gem4_tranc.png
            
                frame
                {{72,0},{34,35}}
                offset
                {0,0}
                rotated
                
                sourceColorRect
                {{0,0},{34,35}}
                sourceSize
                {35,35}
            

            gem5_tranc.png
            
                frame
                {{36,72},{35,35}}
                offset
                {0,0}
                rotated
                
                sourceColorRect
                {{0,0},{35,35}}
                sourceSize
                {35,35}
            

            gem6_tranc.png
            
                frame
                {{36,36},{35,35}}
                offset
                {0,0}
                rotated
                
                sourceColorRect
                {{0,0},{35,35}}
                sourceSize
                {35,35}
            

            gem7_tranc.png
            
                frame
                {{0,36},{35,35}}
                offset
                {0,0}
                rotated
                
                sourceColorRect
                {{0,0},{35,35}}
                sourceSize
                {35,35}
            

        

        metadata
        
            format
            2
            size
            {128,128}
            textureFileName
            sprites.png

the answer is :

in short xcode has bug its not cleaning all when you press clean