This post explains how to mock location on simulator.