EDIT - Do not close the question. It is not asking about location services. It is not a duplicate
Can now be closed, I have found the answer and posted link in comments
I'm doing automation testing on the iOS simulator. Using code, I can tap on objects shown on the simulator for my app. eg, UIAlertView and UIButton objects etc etc.
How do I suppress (or tap on) alert views that are OUTSIDE the scope of my app? For instance, if I navigated to a section of my app that interacts with addressbook, I get the privacy alert message asking for permission. This UIAlert seems to be an iOS system message, and not a normal UIAlertView that is usually generated within my app. As a result, I cannot retrieve the object through code to tap on it.
Does any one know a way to launch an App in simulator (not on the iphone.. this is all automation testing purposes) in such a way that privacy alerts such as these are suppressed?