How to reset iPhone simulator

前端 未结 8 1374
挽巷
挽巷 2020-12-01 07:21

My app uses the location service. To test what is happening when the user presses \'Don\'t allow\' when the simulator asks for the permission to access the location service

8条回答
  •  不知归路
    2020-12-01 07:34

    Nice and handy tool. The great Fastlane commandline tools (https://github.com/fastlane/snapshot)

    snapshot reset_simulators
    

    reset_simulators is removing all simulators and create new one only for the latest iOS version. If you want to recreate simulators for other versions you have to provide the list of the versions after the --ios argument, e.g.

    snapshot reset_simulators --ios 8.3,8.4,9.0,9.1
    

提交回复
热议问题