我创建了一个使用Sprite Kit的简单动画项目.它运行良好,没有问题.
当我将工作副本中的文件合并时,会出现该错误.
当我将工作副本中的文件合并时,会出现该错误.
- NSMutableArray *dPFrames = [NSMutableArray array];
- SKTextureAtlas *dPAtlas = [SKTextureAtlas atlasNamed:@"dP"]; <<---- Thread 1: signal SIGBART
- int numImages = dPAtlas.textureNames.count;
- for (int i=1; i <= numImages; i++) {
- NSString *textureName = [NSString stringWithFormat:@"dP%d@2x",i];
- SKTexture *temp = [dPAtlas textureNamed:textureName];
- [dPFrames addObject:temp];
- }
- _dPAnimateFrames = dPFrames;
- SKTexture *temp = _dPAnimateFrames[0];
- _dP = [SKSpriteNode spriteNodeWithTexture:temp];
- _dP.position = CGPointMake(150,110);
- [self addChild:_dP];
以下是控制台中的消息:
2013-10-09 10:52:14.777 MyProject[1550:a0b] * Terminating app due to uncaught exception ‘Texture Atlas Not Found’,reason: ‘Texture Atlas Not Found’