与 IBAgent-iOS 通信时遇到错误。 iPhone Xs 无法启动设备

问题描述 投票:0回答:8

我在 Xcode 10.3 中的界面生成器顶部收到错误,在单击报告错误并检查 log.txt 文件时,我发现无法打开模拟器。但是我没有启动任何模拟器。

这是 Log.txt 中发现的错误

Encountered an error communicating with IBAgent-iOS. (Failure reason: IBAgent-iOS failed to launch): Failed to boot device iPhone Xs (0B8270CC-2BFB-4BB6-90A5-6BA61468A1AD, iOS 12.4, Shutdown) for context <IBCocoaTouchToolLaunchContext: 0x7fe80e754ad0> toolName = IBAgent-iOS, description = <IBCocoaTouchPlatformToolDescription: 0x7fe80e2a0290> System content for IBCocoaTouchFramework-ElevenAndLater <IBSimulatorDeviceTypeDescription: 0x7fe80fab2f90> deviceType=com.apple.CoreSimulator.SimDeviceType.iPhone-XS (Failure reason: Failed to boot iPhone Xs (0B8270CC-2BFB-4BB6-90A5-6BA61468A1AD, iOS 12.4, Shutdown)): Unable to boot the Simulator. (Failure reason: launchd failed to respond.)

Error Domain=com.apple.InterfaceBuilder Code=-1 "Encountered an error communicating with IBAgent-iOS." UserInfo={NSLocalizedFailureReason=IBAgent-iOS failed to launch, NSUnderlyingError=0x7fe80ae44440 {Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo={NSLocalizedFailureReason=Failed to boot iPhone Xs (0B8270CC-2BFB-4BB6-90A5-6BA61468A1AD, iOS 12.4, Shutdown), NSLocalizedDescription=Failed to boot device iPhone Xs (0B8270CC-2BFB-4BB6-90A5-6BA61468A1AD, iOS 12.4, Shutdown) for context <IBCocoaTouchToolLaunchContext: 0x7fe80e754ad0> toolName = IBAgent-iOS, description = <IBCocoaTouchPlatformToolDescription: 0x7fe80e2a0290> System content for IBCocoaTouchFramework-ElevenAndLater <IBSimulatorDeviceTypeDescription: 0x7fe80fab2f90> deviceType=com.apple.CoreSimulator.SimDeviceType.iPhone-XS, NSUnderlyingError=0x7fe80bd300f0 {Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" UserInfo={NSLocalizedFailureReason=launchd failed to respond., NSLocalizedDescription=Unable to boot the Simulator.}}}}, NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "IBAgent-iOS" for further information., NSLocalizedDescription=Encountered an error communicating with IBAgent-iOS.}
swift xcode interface-builder ios-simulator xcode10.3
8个回答
10
投票

如果有人在 Xcode 13 更新后仍在寻找这个问题的答案,我已经尝试了他们在互联网上提到的所有内容,除了一个之外没有任何效果。唯一有效的是完全重新安装 Xcode。首先完全卸载/删除 Xcode,然后重新启动 mac 并重新安装 Xcode,然后一切都会好的。

  1. 从应用程序文件夹中删除 Xcode 并清空垃圾箱。

  2. 转到 ~/Library/Developer 并删除 CoreSimulator、Xcode、XCTestDevices 文件夹。清空垃圾

  3. 转到 ~/Library/Caches 并删除以 com.apple.dt.Xcode 开头的所有内容,清空垃圾箱

然后重新启动 Mac 并重新安装 Xcode。我使用了我下载的 Xcode 应用程序,我想 AppStore 安装也可以工作。

现在一切正常了。

在此之前,我已经使用

Open as Source Code
模式更改了故事板文件(因为我无法在 Interface Builder 中打开它 - Xcode 只是挂起)

我将故事板设计设备更改为 iPhone 13,而不是旧的设备版本。

<device id="retina6_7" orientation="portrait" appearance="light"/>

我用这条线改变了现有的线。它解决了尝试使用 Interface Builder 打开时 Xcode 挂起的另一个问题,但它没有解决尝试安装应用程序时的

Encountered an error communicating with IBAgent-iOS
问题。当我完全重新安装 Xcode 后,这个问题才得到解决。


5
投票

我已经设法通过更改界面生成器上的预览设备来修复它


5
投票

就我而言,它有帮助:

  • 清洁项目
  • 删除派生数据
  • 关闭 Xcode
  • 重新启动Mac

1
投票

我使用了 DevCleaner XC 辅助应用程序:

https://apps.apple.com/us/app/devcleaner-for-xcode/id1388020431?mt=12

删除所有内容,然后重新启动 mac。无需重新安装 XC。


0
投票

/Users/swatantrakumargoswami/Soulvers-project/SoulWallet/ios/Wallet/LaunchScreen.storyboard:与 IBAgent-iOS 通信时遇到错误。

我也遇到同样的错误 有人能找到这个错误的解决方案吗?


-1
投票

造成这个问题的原因是,我出于某种目的删除了“Library/Developer/Xcode”下的所有目录。但是,我意识到我同时也删除了错误的目录。然后我将目录从 Bin 放回。已经为我解决了。


-1
投票

如果您已经打开了多个版本的 Xcode,您可能需要重新启动或完全重新安装

CoreSimulatorService
,这是一个邪恶的、全局安装的后台服务,尽管兼容,但它以某种方式保持在线并可用于许多版本的 Xcode只有一个版本。

在此处查看更多信息:https://stackoverflow.com/a/72946533/731285

此问题的其他症状:模拟器未显示在

Window > Devices and Simulators
列表中,并且
simctl
抛出错误并且无法找到类似于以下内容的基本 iOS SDK:

$ xcrun simctl list
...
-- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-15-5 --
    iPhone 8 (55A90310-8202-4A0D-968B-00F440D42210) (Shutdown) (unavailable, runtime profile not found)

另请参阅:


-1
投票

就我而言,我只需组建团队

项目 > 目标 > 签约和能力 > 团队 > 个人团队

© www.soinside.com 2019 - 2024. All rights reserved.