【问题标题】:How to fix 'Unable to lookup in current state: Shutdown' error如何修复“无法在当前状态下查找:关机”错误
【发布时间】:2021-04-11 16:31:51
【问题描述】:

我是 macOS 的新手,每当我尝试运行我的应用程序时都会收到此错误

hg@0.0.1 ios react-native run-ios

info Found Xcode workspace "hg.xcworkspace"
info Launching iPhone 12 (iOS 14.4)
info Building (using "xcodebuild -workspace hg.xcworkspace -configuration Debug -scheme hg -destination id=70F98FFE-B73E-4E70-9856-4FB635F7B6BD")
success Successfully built the app
info Installing "/Users/mu/Library/Developer/Xcode/DerivedData/hg-dalmerybpbcohpexdotdxpbbxxeh/Build/Products/Debug-iphonesimulator/hg.app"
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
Unable to lookup in current state: Shutdown
info Launching "org.reactjs.native.example.hg"
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

正如我之前提到的,我是 macOS 的新手,每当我尝试运行我的项目时,我都会收到此错误。我尝试删除并创建一个新项目,但出现同样的错误。

【问题讨论】:

    标签: ios xcode react-native ios-simulator react-native-ios


    【解决方案1】:

    由于 Xcode 缓存,这个问题仍然不时出现。您需要清除 DerivedData 文件夹才能再次启动模拟器。

    导航到 >YOUR_USER_FOLDER>/Library/Developer/Xcode 并删除 DerivedData 文件夹。这应该足以解决问题,但您也可以在尝试再次构建之前在 Xcode 中清理项目作为最后一步。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-17
      • 2012-09-12
      • 2020-07-14
      • 2019-11-19
      • 2016-09-28
      • 1970-01-01
      相关资源
      最近更新 更多