objective c - How to disable system location alert in iOS simulator -


i use kif framework (http://github.com/kif-framework/kif) xcode continuous integration server ui testing.

when xcode ci server start app in ios simulator system alert "application use current location" appears.

i use delegate

- (void)locationmanager:(cllocationmanager *)manager didchangeauthorizationstatus: (clauthorizationstatus)status 

to notification user allows use location , need keep is.

  1. is possible tap ok on system alert kif ? didn't found out way.
  2. or how allow application use location service in simulator without showing alert ?

according this answer top kif contributor, dismissing system alerts automatically impossible, , should therefore mock (i.e. provide substitute for) location service can test code without running alert.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -