sys.localStorage is undefined in jsb, It works OK in browser.
Please ensure your cocos2d-jsb version is supported sys.localStorage or not.
The version cocos2d 2.2.1
It works well in browser,but not work in jsb
did you binding cocos2d to AppDelegate.cpp?Please refer to attachement.
I have bound them to AppDelegate.cpp .sys.localStorage throw the error message " localStorage was undefined "