In this post, we help you solve the error as you came here for assistance. We never let you go without providing you with useful and efficient solutions to make the error go away. Let’s start digging out how the error appears
How the error pops up
When working on a react native project, you land up in the error warning. You get the following error
success Successfully built the app --- xcodebuild: WARNING: Using the first of multiple matching destinations: info Installing "/Users/milanpatel/Library/Developer/Xcode/DerivedData/myracnative-glxuojrfejxbhqgircpjgklctbto/Build/Products/Debug-iphonesimulator/myracnative.app" An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Unable to lookup in current state: Shutdown
How To Solve the Error “an error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405) in React-native”
We have come up with effective solutions to fix the error simply. Have a look at the solutions
Solution 1 – Delete project builds and indexes
The error appears when you are using Xcode with version 13 and it has a bug. You can send a bug report to apple to get assistance or you can also fix the issue yourself. In order to solve it, you need to follow the below steps
- Select storage in your Mac
- Open Manager and go to Developer
- Tap to delete project builds and indexes
It successfully removes the error.
Solution 2 – Re-run react-native run-ios
The simplest option to try out is to quit the Simulator. Sometimes closing or quitting solves the error, the same goes with this one. You need to re-run the react-native run-ios.
Alternatively, you need to choose a specified iOS simulator. It also resolves the error. See the below example
npx react-native run-ios --simulator="iPhone 8"
Solution 3 – Remove the folder DerivedData
You get the error message because of the Xcode cache when you update the Xcode to the 13.0 version. To fix the error, you need to remove the folder DerivedData. Follow the below process to resolve the error:
- Choose Preference and click the Locations tab
- In Derived Data, select Relative
- See the screenshot for reference
We have together discussed the solutions to fix the error “an error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405) in React-native”. All the solutions are quite easy to implement.
I wish you luck! I hope you solve the error!