I am out of sudden encountering this error when I try to build my app. Nothing changed in my app (I am using git) and I was able to build and run my app in simulator just yesterday. However, today trying to use simulator stopped working.
This is what happened:
I loaded my app in XCode and tried running it in simulator like every other day
XCode was saying "Attaching to simulator" or so but that would take forever and simulator would only show black screen
Eventually I got this error "/Users/dinob/Desktop/work/ios/Todoey-iOS13/Todoey/Supporting Files/Base.lproj/LaunchScreen.storyboard:1:1: Encountered an error communicating with IBAgent-iOS."
The log shows it too
=================================
DATE:
=================================
Sunday, February 2, 2020 at 10:21:24 Pacific Standard Time
2020-02-02 18:21:24 +0000
=================================
XCODE VERSION INFO:
=================================
Version = 11.3.1 (11C504)
Plugin Version = 15705
Beta Version = 1
OS Version = 10.15.3 (19D76)
=================================
ERROR:
=================================
Encountered an error communicating with IBAgent-iOS. (Failure reason: IBAgent-iOS (853) failed to launch and exited with status 6): Failed to launch IBAgent-iOS via CoreSimulator spawn: Failed to handshake with platform tool (Failure reason: Failed to keep platform tool alive): Failed to keep launch platform tool and keep alive: Failed to communicate with helper tool (Failure reason: The tool closed the connection)
Error Domain=com.apple.InterfaceBuilder Code=-1 "Encountered an error communicating with IBAgent-iOS." UserInfo={NSLocalizedFailureReason=IBAgent-iOS (853) failed to launch and exited with status 6, NSUnderlyingError=0x7ffd09fab010 {Error Domain=com.apple.InterfaceBuilder Code=-1 "Failed to launch IBAgent-iOS via CoreSimulator spawn" UserInfo={NSLocalizedDescription=Failed to launch IBAgent-iOS via CoreSimulator spawn, NSUnderlyingError=0x7ffd09fc6170 {Error Domain=com.apple.InterfaceBuilder Code=-1 "Failed to handshake with platform tool" UserInfo={NSLocalizedFailureReason=Failed to keep platform tool alive, NSLocalizedDescription=Failed to handshake with platform tool, NSUnderlyingError=0x7ffd09fd0720 {Error Domain=com.apple.InterfaceBuilder Code=-1 "Failed to keep launch platform tool and keep alive" UserInfo=0x7ffd0c1037c0 (not displayed)}}}}}, NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "IBAgent-iOS" for further information., NSLocalizedDescription=Encountered an error communicating with IBAgent-iOS.}
=================================
TOOL DESCRIPTION:
=================================
<IBCocoaTouchPlatformToolDescription: 0x7ffd07695b10> {
| targetRuntime.identifier: IBCocoaTouchFramework-ThirteenAndLater
| _roleString: System content
| deviceTypeDescription: <IBSimulatorDeviceTypeDescription: 0x7ffd086e3540> deviceType=com.apple.CoreSimulator.SimDeviceType.iPhone-XR
}
=================================
LAUNCH CONTEXT:
=================================
<IBCocoaTouchToolLaunchContext: 0x7ffd06f7e080> {
| toolDescription.ib_verboseDescription: <IBCocoaTouchPlatformToolDescription: 0x7ffd07695b10> {
| | targetRuntime.identifier: IBCocoaTouchFramework-ThirteenAndLater
| | _roleString: System content
| | deviceTypeDescription: <IBSimulatorDeviceTypeDescription: 0x7ffd086e3540> deviceType=com.apple.CoreSimulator.SimDeviceType.iPhone-XR
| }
| launchPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/IBAgent-iOS
| frameworkSearchPaths: (
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks"
)
| toolName: IBAgent-iOS
| platformName: iphonesimulator
| applicationTool: 0
| processIdentifier: 853
| exitStatus: 6
| signalStatus: (null)
}
=================================
EXECUTION CONTEXT:
=================================
<IBSimulatorToolCoreSimulatorBootedCLIExecutionContext: 0x7ffd06f838e0 busyCount=0, Idle for 0.0 secs> {
| device: iPhone Xʀ (2B9F6AD2-FF70-41C5-A8AA-13A9059FAC34, iOS 13.3, Booted)
}
=================================
DEVICE:
=================================
iPhone Xʀ (2B9F6AD2-FF70-41C5-A8AA-13A9059FAC34, iOS 13.3, Booted)
=================================
TOOL MANAGER:
=================================
<IBCocoaTouchToolManager: 0x7ffd086f2f00>
=================================
REASON FOR REQUESTING TOOL:
=================================
Preflighting tools for opening document <IBStoryboardDocument: 0x7ffd01e69e00>: <IBCocoaTouchTargetRuntime: 0x7ffd07ab14b0>
=================================
XCODE BACKTRACE:
=================================
0 +[IBPlatformToolFailureHandler failureHandlerWithContext:failure:diagnosticsHandlerBlock:] (in IDEInterfaceBuilderKit)
1 +[IBAbstractInterfaceBuilderPlatformToolManager _THREADSAFE_injectDiagnosticsHandlerWithFailureContext:intoError:forLaunchingToolWithError:] (in IDEInterfaceBuilderKit)
2 +[IBAbstractInterfaceBuilderPlatformToolManager _THREADSAFE_launchNewToolWithLaunchContext:executionContext:toolProxyClass:proxyDelegate:failureContext:requestingMethod:error:forReason:] (in IDEInterfaceBuilderKit)
3 __117-[IBAbstractInterfaceBuilderPlatformToolManager asyncLaunchNewToolWithDescription:queue:completionHandler:forReason:]_block_invoke.401 (in IDEInterfaceBuilderKit)
4 _dispatch_call_block_and_release (in libdispatch.dylib)
5 _dispatch_client_callout (in libdispatch.dylib)
6 _dispatch_lane_serial_drain (in libdispatch.dylib)
7 _dispatch_lane_invoke (in libdispatch.dylib)
8 _dispatch_workloop_worker_thread (in libdispatch.dylib)
9 _pthread_wqthread (in libsystem_pthread.dylib)
10 start_wqthread (in libsystem_pthread.dylib)
=================================
SDKS:
=================================
tvOS 13.2 (appletvos13.2):
version = 13.2
platform = com.apple.platform.appletvos
versionInfo = {
BuildID = "E006541A-FDDF-11E9-BD2E-70CCCBA8ED01";
ProductBuildVersion = 17K90;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Apple TVOS";
ProductVersion = "13.2";
}
Simulator - watchOS 6.1 (watchsimulator6.1):
version = 6.1
platform = com.apple.platform.watchsimulator
versionInfo = {
BuildID = "CE1EE84E-F0BE-11E9-AAA1-EC59EE022449";
ProductBuildVersion = 17S80;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Watch OS";
ProductVersion = "6.1";
}
macOS 10.15 (macosx10.15):
version = 10.15
platform = com.apple.platform.macosx
versionInfo = {
ProductBuildVersion = 19B90;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Mac OS X";
ProductUserVisibleVersion = "10.15.1";
ProductVersion = "10.15.1";
iOSSupportVersion = "13.2";
}
Simulator - tvOS 13.2 (appletvsimulator13.2):
version = 13.2
platform = com.apple.platform.appletvsimulator
versionInfo = {
BuildID = "E006541A-FDDF-11E9-BD2E-70CCCBA8ED01";
ProductBuildVersion = 17K90;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Apple TVOS";
ProductVersion = "13.2";
}
watchOS 6.1 (watchos6.1):
version = 6.1
platform = com.apple.platform.watchos
versionInfo = {
BuildID = "CE1EE84E-F0BE-11E9-AAA1-EC59EE022449";
ProductBuildVersion = 17S80;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Watch OS";
ProductVersion = "6.1";
}
Simulator - watchOS 6.1 (watchsimulator6.1):
version = 6.1
platform = com.apple.platform.watchsimulator
versionInfo = {
BuildID = "CE1EE84E-F0BE-11E9-AAA1-EC59EE022449";
ProductBuildVersion = 17S80;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Watch OS";
ProductVersion = "6.1";
}
macOS 10.15 (macosx10.15):
version = 10.15
platform = com.apple.platform.macosx
versionInfo = {
ProductBuildVersion = 19B90;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Mac OS X";
ProductUserVisibleVersion = "10.15.1";
ProductVersion = "10.15.1";
iOSSupportVersion = "13.2";
}
Simulator - iOS 13.2 (iphonesimulator13.2):
version = 13.2
platform = com.apple.platform.iphonesimulator
versionInfo = {
BuildID = "908F121A-FDD9-11E9-80B6-3DB8040D7714";
ProductBuildVersion = 17B102;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "iPhone OS";
ProductVersion = "13.2.2";
}
iOS 13.2 (iphoneos13.2):
version = 13.2
platform = com.apple.platform.iphoneos
versionInfo = {
BuildID = "908F121A-FDD9-11E9-80B6-3DB8040D7714";
ProductBuildVersion = 17B102;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "iPhone OS";
ProductVersion = "13.2.2";
}
Simulator - iOS 13.2 (iphonesimulator13.2):
version = 13.2
platform = com.apple.platform.iphonesimulator
versionInfo = {
BuildID = "908F121A-FDD9-11E9-80B6-3DB8040D7714";
ProductBuildVersion = 17B102;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "iPhone OS";
ProductVersion = "13.2.2";
}
watchOS 6.1 (watchos6.1):
version = 6.1
platform = com.apple.platform.watchos
versionInfo = {
BuildID = "CE1EE84E-F0BE-11E9-AAA1-EC59EE022449";
ProductBuildVersion = 17S80;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Watch OS";
ProductVersion = "6.1";
}
iOS 13.2 (iphoneos13.2):
version = 13.2
platform = com.apple.platform.iphoneos
versionInfo = {
BuildID = "908F121A-FDD9-11E9-80B6-3DB8040D7714";
ProductBuildVersion = 17B102;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "iPhone OS";
ProductVersion = "13.2.2";
}
tvOS 13.2 (appletvos13.2):
version = 13.2
platform = com.apple.platform.appletvos
versionInfo = {
BuildID = "E006541A-FDDF-11E9-BD2E-70CCCBA8ED01";
ProductBuildVersion = 17K90;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Apple TVOS";
ProductVersion = "13.2";
}
DriverKit 19.0 (driverkit.macosx19.0):
version = 19.0
platform = com.apple.platform.macosx
versionInfo = {
}
Simulator - tvOS 13.2 (appletvsimulator13.2):
version = 13.2
platform = com.apple.platform.appletvsimulator
versionInfo = {
BuildID = "E006541A-FDDF-11E9-BD2E-70CCCBA8ED01";
ProductBuildVersion = 17K90;
ProductCopyright = "1983-2019 Apple Inc.";
ProductName = "Apple TVOS";
ProductVersion = "13.2";
}