This question already has an answer here: How do I test a camera in ... So far apple iPhone simulator don't have feature to connect to the system ...
stackoverflow.com