Question: my iphone xs is not locking?
Answer: Auto Lock Problems; Fix Go to Settings > Display & Brightness > Auto-Lock and set the timer (except Never). Turn off Passcode by going to Settings > Touch ID & Passcode (your will be asked to enter your passcode) > and tap Turn Passcode Off. Then restart your device and turn Passcode back on.