ios - Object cannot be nil for Un used NSUserDefaults key in project -


terminating app due uncaught exception 'nsinvalidargumentexception', reason: '*** setobjectforkey: object cannot nil (key: client_id)

in current project (swift) getting above error, when haven't used key anywhere in project. got error after facebook integration.

but same key used in previous project. resolve problem, cleaned build , uninstalled both previous , current app , rerun build. still facing error.

i searched key access client_id in files, couldn't find it.

in breakpoints tab, add exception breakpoint , see exception being hit. adding nil value dictionary.