6

I am getting an Error on the top of my interface builder in Xcode 10.3 and while clicking on report bug and checking the log.txt file I found out that fails to open simulator. However I am not starting any simulator.

Here is the Error found in 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.}
4

2 回答 2

3

如果有人在 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"/>

我用这条线改变了现有的线。Encountered an error communicating with IBAgent-iOS在尝试使用 Interface Builder 打开时,它有点解决了 Xcode 挂起的另一个问题,但在尝试安装应用程序时并没有解决问题。这个问题只有在我完全重新安装 Xcode 后才得到解决。

于 2021-09-23T18:38:16.457 回答
0

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

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

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

于 2022-02-04T11:47:16.027 回答