If you forgot your iCloud Security Code, you can reset it if you have access to one of your devices that has iCloud Keychain enabled.
Devices using iOS 7.0.3 or later:
- Go to Settings > iCloud > Account > Keychain.
- Tap Change Security Code.
- Enter your Apple ID password when asked.
- Enter a new iCloud Security Code.
Macs using OS X Mavericks v10.9 or later:
- Choose Apple () menu > System Preferences. Click iCloud, then click Account Details.
- Click Change Security Code to set a new iCloud Security Code.
If you don't have access to a device with iCloud Keychain enabled, you should wait until you have access to one of your devices with iCloud Keychain enabled, then follow the above steps to change your security code. If you can't wait until you have access to a device with iCloud Keychain enabled, you can complete setup by resetting iCloud Keychain on the device:Devices using iOS 7.0.3 or later:
- Go to Settings > iCloud > Keychain.
- Tap “Approve with Security Code”.
- When asked to enter your iCloud Security Code, tap “Forgot Code?”.
- Tap Reset iCloud Keychain to replace your iCloud Keychain in the cloud with the iCloud Keychain items on your device.
- Tap Reset to confirm. You will be asked to create a new iCloud Security Code.
Macs using OS X Mavericks v10.9 or later:
- Choose Apple () menu > System Preferences. Click iCloud, then select Keychain.
- When asked to enter your iCloud Security Code, click “Forgot Code?”.
- Click Reset Keychain to replace your iCloud Keychain in the cloud with the iCloud Keychain items on your Mac.
- Click Reset to confirm. You will be asked to create a new iCloud Security Code.