I\'m developing an iOS app that is distributed to devices that are all locked with a passcode. Is there a way to get the device passcode (or some form of it) to dynamically gene
No. There is no API to determine if there is a device passcode set or to get the passcode if one is set.
You will need to generate the keys using some other value. One option would be to require the user to enter an app specific passcode.