Getting app to work in simulator mode