Why can’t I sign into my Apple Music account on my mobile device?
If you are being asked to enter a code on your web browser as part of the sign in process, you may not currently have an active Apple Music subscription.
Check your subscription status at music.apple.com.
Did you get the answer you needed?