Force close watchOS apps on simulators?

When developing applications for iOS, it is sometimes useful to be able to force close the application. For example: when developing functions that appear only during new application launches.

Force closure is possible both on real devices and on iOS simulators, following these steps :

  • Double-click the Home button. You will see small previews of your recently used applications.

  • Swipe left to find the application you want to close.

  • Swipe up to view the application to close it.

Several unofficial sources report that the Apple Watch application can be forced to close on a real device by following these steps:

  • When the application is open, press and hold the side button until the shutdown menu appears.
  • When the power menu comes to the fore, release the button.
  • A second time press the side button and hold it until the application shuts down and you return to the main screen.

Question: Is it possible to forcefully close the application on watchOS simulators?

, Apple Watch, , , . Apple Apple Watch . - ?

+4
2

, #if DEBUG ... #endif, . assertionFailure() abort(), . , , , ( ). , , , , !

+3

Reboot Hardware Apple Watch. , .

0

Source: https://habr.com/ru/post/1618975/


All Articles