Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build error domain=com.apple.CoreSimulator.SimError, code=405

I can build on my iOS 15 emulator with no problems, but when building on my iOS 15 Device connected to xcode 13. I get the error:

error Failed to launch the app on simulator, An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Unable to lookup in current state: Shutdown.

Any ideas?

Console:

success Successfully built the app --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:iOS Simulator, id:CECA2B5E-D9A0-4A52-8947-BF0838EBEDD6, OS:15.0, name:iPhone 8 } { platform:iOS Simulator, id:4B8F148A-C39B-42B8-B982-82759A99BAF9, OS:15.0, name:iPhone 8 Plus } { platform:iOS Simulator, id:8853D49D-06EB-4542-AE09-EFD94DC045D6, OS:15.0, name:iPhone 11 } { platform:iOS Simulator, id:1F7B80D0-0CFE-4D4F-AF69-260D8F0D785C, OS:15.0, name:iPhone 11 Pro } { platform:iOS Simulator, id:7AF2F670-7D7B-4C0D-B1A2-DDD9A8DC0554, OS:15.0, name:iPhone 11 Pro Max } { platform:iOS Simulator, id:5A36169B-4CE3-4E54-AC1D-8E2550EAAF61, OS:15.0, name:iPhone 12 } { platform:iOS Simulator, id:DA7C5083-DE28-40C8-83D3-7BA678311561, OS:15.0, name:iPhone 12 Pro } { platform:iOS Simulator, id:C012CD47-9A6D-4B88-B209-4777EE57BD2A, OS:15.0, name:iPhone 12 Pro Max } { platform:iOS Simulator, id:3C64ECA5-9EE0-4D2C-A0C9-82CAD36AE094, OS:15.0, name:iPhone 12 mini } { platform:iOS Simulator, id:DBA58C7D-41CB-44B2-99FA-F07E5CB829B5, OS:15.0, name:iPhone 13 } { platform:iOS Simulator, id:B43092DC-8F33-47BD-8429-A4D35C7FD7B8, OS:15.0, name:iPhone 13 Pro } { platform:iOS Simulator, id:E587AD8C-D9B6-4683-9251-6D0F5DF50A57, OS:15.0, name:iPhone 13 Pro Max } { platform:iOS Simulator, id:1A7AC21A-A578-40A7-9C81-53B7F90CAED6, OS:15.0, name:iPhone 13 mini } { platform:iOS Simulator, id:352BE540-010B-4A15-B67D-965A884BB20D, OS:15.0, name:iPhone SE (2nd generation) } { platform:iOS Simulator, id:24BBBFF1-FF95-453D-A952-66D3A93D611D, OS:15.0, name:iPod touch (7th generation) } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } { platform:iOS Simulator, id:75F7457E-C581-4247-A1DC-E92CA319A693, OS:15.0, name:iPad (9th generation) } { platform:iOS Simulator, id:1482EAA0-8637-4D49-A091-B604208127BB, OS:15.0, name:iPad Air (4th generation) } { platform:iOS Simulator, id:38D1E279-3D1E-4248-8B9D-76A3480D1CF0, OS:15.0, name:iPad Pro (9.7-inch) } { platform:iOS Simulator, id:54079569-B96E-4570-A076-732A2DED9E49, OS:15.0, name:iPad Pro (11-inch) (3rd generation) } { platform:iOS Simulator, id:A0CBCD90-C028-420B-9D6F-07E6EDA643FC, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) } { platform:iOS Simulator, id:E034D4B3-770E-4AD1-8573-DF7984340F16, OS:15.0, name:iPad mini (6th generation) } info Installing "/Users/mattharris/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 
like image 375
Bomber Avatar asked Sep 24 '21 09:09

Bomber


2 Answers

I got this error when the simulator is already open while I ran react-native run-ios. Closed the simulator all the way. Reran the command and it worked.

like image 172
Hanchen Jiang Avatar answered Oct 02 '22 15:10

Hanchen Jiang


Delete Xcode cache

Delete Project Build and indexes

Path:> about this Mac>Storage>Manage>Developer

Screen

like image 38
Soju Tom Avatar answered Oct 02 '22 16:10

Soju Tom