Sprite.createWithSpriteFrameName() is confusing since it accepts both a spriteFrame and a spriteFrameName.
What it should do is to accept only spriteFrameName types.
Another constructor should be added for spriteFrame.
Note: the current API is not compatible with the JS Bindings.
It has been fixed.