runAnimationsForSequenceNamed is nil

版本2.2.1

local animationManager = layer:getUserObject()
animationManager:runAnimationsForSequenceNamed(name) 

这段代码在android上运行正常,但是在ios上不嫩运行,下面是log:

Cocos2d:  :231: attempt to call method 'runAnimationsForSequenceNamed' (a nil value) 

哪位大神知道这怎么解决?