Amit Srivastava give this detail here
Apple forcing developers to use two factors password security and follow these steps to enable it
On your apple device with iOS 9+
- Go to Settings > iCloud > tap your Apple ID
- Password & Security
- Turn on Two-Factor Authentication
On your Mac Pro with OS X El Capitan or later
-
Go to Apple () menu > System Preferences > iCloud > Account Details
-
Click Security
-
Turn on Two-Factor Authentication
If you already use two-step verification, turn it off, then turn on two-factor authentication