'React-Native CLI Unable to boot device in current state: Booted

I want run react-native project but when i write 'npx react-native run-ios' I get the following error. After OK button clicking simulator worked. What is this error and how can i solve it?

enter image description here

I tried many methods but didn't work.



Solution 1:[1]

I found solution. Simulator -> Preferences -> Simulator lifetime: When Simulator starts boot the most recently used simulator I unchecked.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Caner