If the update fails or your device gets stuck, restart your iPhone and try the update again. If the problem persists, consider updating via iTunes or Finder on a computer.