Segment framework make UIAlertController to crash with NSInternalInconsistencyException

152 views Asked by At

I follow "https://segment.com/" to implement analytics . But when I use UIAlertController to show alert with title , my app was crash!shows an error

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'screen name () must not be empty.'

I am using swift for development. I just initialise the segment in AppDelegate at didFinishLaunchingWithOptions. I am not using any of alias, group, identify, page and track calls .enter image description here

1

There are 1 answers

0
AudioBubble On

In my case I am setting title as empty string so instead of setting blank "" in title,I set tittle to nil. And It is working, App is not crashing now.