I\'m using the code below to hide the home indicator on iPhone X, which is working fine in the emulator.
-(BOOL)prefersHomeIndicatorAutoHidden { return YES;
This works for me :
-(bool) prefersHomeIndicatorAutoHidden { return NO; }