How can I programmatically determine if my app is running in the iphone simulator? How can I programmatically determine if my app is running in the iphone simulator? swift swift