Dip*_*hah 14 xcode interface-builder ios-simulator swift xcode10.3
我在 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.}
Run Code Online (Sandbox Code Playgroud)
RJE*_*RJE 10
如果有人在 Xcode 13 更新后仍在寻找这个问题的答案,我已经尝试了他们在互联网上提到的所有内容,但除了一个之外没有任何效果。唯一有效的是完全重新安装 Xcode。首先完全卸载/删除 Xcode,然后重新启动 mac 并重新安装 Xcode,然后一切都会好的。
从应用程序文件夹中删除 Xcode 并清空垃圾箱。
转到 ~/Library/Developer 并删除 CoreSimulator、Xcode、XCTestDevices 文件夹。清空垃圾桶
转到 ~/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"/>
Run Code Online (Sandbox Code Playgroud)
我用这条线改变现有的线。Encountered an error communicating with IBAgent-iOS
它解决了尝试使用 Interface Builder 打开时 Xcode 挂起的另一个问题,但在尝试安装应用程序时没有解决问题。当我完全重新安装 Xcode 后,这个问题才得到解决。
归档时间: |
|
查看次数: |
17625 次 |
最近记录: |