Ios 在Cocos2d中加载多包精灵表时未找到文件

Ios 在Cocos2d中加载多包精灵表时未找到文件,ios,cocos2d-iphone,texturepacker,Ios,Cocos2d Iphone,Texturepacker,我正试图通过TexturePacker使用Multipack来处理同一精灵的多个动画。我在TexturePacker中添加了我所有的图像并发布了它们,没问题。我已经将它们添加到我的项目中的Resources文件夹中,我甚至在Finder中看到它们 当我试图称之为 -(CCSpriteBatchNode*)createSpritesheet { [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"C

我正试图通过TexturePacker使用Multipack来处理同一精灵的多个动画。我在TexturePacker中添加了我所有的图像并发布了它们,没问题。我已经将它们添加到我的项目中的Resources文件夹中,我甚至在Finder中看到它们

当我试图称之为

-(CCSpriteBatchNode*)createSpritesheet {
    [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"Clea1.plist"];

    CCSpriteBatchNode *spritesheet = [CCSpriteBatchNode batchNodeWithFile:@"Clea1.png"];

    return spritesheet;
}
我最后犯了以下错误:

2013-08-21 00:08:13.024 HFZ[10498:a0b] -[CCFileUtils fullPathForFilename:resolutionType:] : cocos2d: Warning: File not found: Clea1.plist
2013-08-21 00:08:13.025 HFZ[10498:a0b] cocos2d: CCSpriteFrameCache: Trying to use file 'Clea1.png' as texture
2013-08-21 00:08:13.025 HFZ[10498:a0b] -[CCFileUtils fullPathForFilename:resolutionType:] : cocos2d: Warning: File not found: Clea1.png
2013-08-21 00:08:13.026 HFZ[10498:a0b] cocos2d: Couldn't find file:Clea1.png
2013-08-21 00:08:13.026 HFZ[10498:a0b] cocos2d: CCSpriteFrameCache: Frame 'CleaStand00.png' not found

我真的不明白为什么会这样。在我尝试多包装解决方案之前,我试图在每个动画中使用一个精灵表,但这似乎是更好的选择。对此有什么想法吗?

只是猜测,但有时我会发现,即使我向项目添加资源,它们也不会出现在
复制捆绑资源
构建阶段。仔细检查
clia1.plist
clia1.png
是否位于
Copy Bundle Resources
部分,否则从
Project navigator