Now, enter this verification code into the iPhone with the error to fix it completely. Select “Password and Security” and then click on the “Generate Verification Code”. How do you fix verification failed There was an error connecting to the Apple ID Server? Check Your Device’s Date & Time Settings.Make Sure You’re Connected to the Internet.iPadOS & iOS Update: Get the Latest Apple Software Update.Retry Your App Store, iTunes Store, or other Apple Services Login.How do I fix error connecting to Apple ID Server? If you don’t subscribe to Apple Music or iTunes Match, you won’t see an option to turn on Sync Library. confirm your selection with the pop-up.scroll down and select "reset" iCloud Music Library.