Status Bar design in Adobe XD/Sketch should be removed, projects should use a system-provided status bar.
When you have a Status Bar in the design, you can convert it to a Status Bar component to prevent its generation in your code. Mobile users expect the status bar to be consistent systemwide so you should use a system-provided status bar. You can do your edits/configuration after you export your project.
The Status Bar shouldn't be in the design.
Resources for iOS and Android Developers
You can see the recommended use of StatusBar for Swift in developer.apple.comhere and for Android, developer.android.comhere.