Reason for app rejection: Guideline 5.1.1 - Legal - Privacy - Data Collection and Storage

We noticed that your app requires users to register with personal information that is not directly relevant to your app’s core functionality. Specifically, the following fields or actions are required but do not appear to be directly relevant to your app’s core functionality:

City, State, and Birthdate

Next Steps:

To resolve this issue, please either remove all required fields that are not relevant to the app or make those fields optional. Information requested during registration must be relevant to the features the app provides.

What does it mean?

Apple thinks that the mentioned fields should not be a requirement when signing in to the app.

How to resolve it?

You should either remove the fields from the registration or make them optional.

Once done, respond to Apple's message confirming the change(s) applied.

Do I need to generate a new build?