I've just flashed the softdevice 5.2.1 and BLE Proximity sample app to my nRF51822. I presume any previous bond state on the device should have been wiped by doing this.
If I now start the nRF Proximity iOS app and try to connect to the device, I get the following error:
Failed to connect The app couldn't connect to Nordic_Prox This usually indicates a previous bond. Go to the settings and clear it before you try again.
Which settings does this error refer to? If I go to the Bluetooth settings in iOS, the device is either not listed at all, or is flickering between two states (not connected and pairing, I think).