How to Fix “Unlock iPhone to Use Accessories”
Starting with iOS 12, you will always have to unlock your iPhone or iPad to connect a USB accessory. This is because of “USB Restricted Mode,” which protects your iPhone or iPad from hacking tools like GrayKey.