When an iPhone suddenly refuses to install a new app or take another photo, the culprit is often a mysterious bar in Settings ...
To do this, go to Settings, General, AutoFill & Passwords. Then scroll to the Verification Codes section and toggle on Delete ...