CCSprite is not displaying on the iPhone.
I am trying to make a sprite display on the screen in Cocos2d. But, I don't want to use a CCSprite directly. I have a class Unit which will have some additional properties that I will need later on in my game. The class declaration of Unit is as follows:

    @interface Unit : CCSprite {
    	CCSprite *sprite;
    }
    
    -(void)init;
    
    @property(nonatomic, retain) NSNumber *type;
    @property(nonatomic, retain) CCSprite *sprite;
    
    @end

And my init method for it looks like this:

    -(void)init {
    	self.sprite = [CCSprite spriteWithFile:@"BasicUnit.png"];
    	self.sprite.position = ccp(50, 100);
    }

Now what I need to do is apply it to the screen. So, I have another class called Playscene which is the scene where I want to display sprites and things. Here is what the init method (the method that should draw the sprites) looks like in Playscene:

    -(id) init {
    	if( (self=[super init] )) {
    		self.isTouchEnabled = YES;
    		[army init];
    		[self addChild:army.sprite];
    	}
    
    	return self;
    }

But, when I run this I get a ton of error data including: "terminate called after throwing an instance of 'NSException'" and probably of more importance: "Assertion failure in -[PlayScene addChild:]". I don't know how I can solve this. Any help would be appreciated.
CCSprite is not displaying on the iPhone.
===

I am trying to make a sprite display on the screen in Cocos2d. But, I don't want to use a CCSprite directly. I have a class Unit which will have some additional properties that I will need later on in my game. The class declaration of Unit is as follows:

    @interface Unit : CCSprite {
    	CCSprite *sprite;
    }
    
    -(void)init;
    
    @property(nonatomic, retain) NSNumber *type;
    @property(nonatomic, retain) CCSprite *sprite;
    
    @end

And my init method for it looks like this:

    -(void)init {
    	self.sprite = [CCSprite spriteWithFile:@"BasicUnit.png"];
    	self.sprite.position = ccp(50, 100);
    }

Now what I need to do is apply it to the screen. So, I have another class called Playscene which is the scene where I want to display sprites and things. Here is what the init method (the method that should draw the sprites) looks like in Playscene:

    -(id) init {
    	if( (self=[super init] )) {
    		self.isTouchEnabled = YES;
    		[army init];
    		[self addChild:army.sprite];
    	}
    
    	return self;
    }

But, when I run this I get a ton of error data including: "terminate called after throwing an instance of 'NSException'" and probably of more importance: "Assertion failure in -[PlayScene addChild:]". I don't know how I can solve this. Any help would be appreciated.