Question: how to fix an error occurred installing ios 12?
Answer: Go to Settings > General > [Device name] Storage., Find the update in the list of apps., Tap the update, then tap Delete Update., Go to Settings > General > Software Update and download the latest update.