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.
- is possible tap ok on system alert kif ? didn't found out way.
- 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
Post a Comment