iOS: Safe Area component issue

Hi
I have updated project from cocos creator v 2.0.2 to 2.4.0, I am implementing safe area component with default widget in main node. When compiling on Xcode i am getting this error as follows

ScriptEngine::onGetStringFromFile src/settings.14aa0.js not found, possible missing file.

ScriptEngine::runScript script src/settings.14aa0.js, buffer is empty!

[ERROR] Failed to invoke require, location: /Applications/CocosCreator/Creator/2.4.0/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_global.cpp:300

ScriptEngine::evalString script main.js, failed!

ERROR: TypeError: undefined is not an object (evaluating ‘settings.debug’), location: main.js:85:28

STACK:

boot@main.js:85:28

After removing safe area component , Xcode successfully runs the project. Please let me know the solution. I want to provide support for iPhone X .

Hi, can you provide a demo for reproducible problem?