IBAgent-iOS Error

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";

}

Resolved issue by uninstalling XCode like so:


  1. Delete XCode from Applications folder
  2. Empty Trash
  3. Navigate to ~/Library, then find Developer folder. If XCode coding is all you do, then delete entire folder. I do dev in XCode but also Xamarin, so I went in Developer folder and deleted all folders that don't have "Xamarin" in their names. These are CoreSimulator, XCode, XCTestDevices.
  4. Empty Trash
  5. Navigate to ~/Library/Caches/ and look for folder com.apple.dt.XCode and delte this folder
  6. Empty Trash
  7. Restart MacBookPro
  8. Go to AppStore and download XCode and install it again.


After this, I was able to build and run my app again and it would launch simulator and deploy my app onto it.

Super simple: clean the build folder using Command+Shift+K

https://stackoverflow.com/questions/50963416/build-failed-with-xcode-10-beta
The Super simple: clean the build folder using Command+Shift+K
didn't do it and I just installed so I went to the build folder
~/Library/Developer/Xcode/DerivedData
and erased all the builds which was just the one project I was working on.

Hello, I've encountered this error while using Xcode 13. All my .xib files were unable to be used on my project. So my solution was to downgrade my Xcode version to 12.5.1 by downloading here https://developer.apple.com/download/all/

If my solution can help someone, it would be fine !

Having the same issue in .Xib files. Did anyone get solution on this?

So I thought maybe the "IB agent" just never got started--cold restart, and bingo! Anyway, the problem forced me to do a lot of worthwhile cleanup.

That was it for me, too. A restart of the Mac resolved the issue. Thanks.

Deleting the Derived Data folder solved the issue (for now, until it returns and I have to do the same thing over.)

Hi, a colleague and I just faced this issue about 15 minutes ago on Xcode 14.2. The issue can come from your MacOS version being outdated, stopping you from having the latest version of Xcode command line tools. My Mac is on 12.6.2, and things work fine. My colleague's Mac was on 12.6.1, with an update pending, that included Xcode 14 command line tools. Other resolutions, are also 'resetting' or updating their command tools by deleting and reinstalling Xcode. Use as directed.

This issue can be caused from your Xcode Command Line Tools being out of date, because you do not have the latest MacOS version installed that gives you the latest version needed to compile things correctly. For example: This issue exists when running Xcode 14.2 on MacOS version 12.6.1, but does not exist on 12.6.2 when running Xcode 14.2. The Mac that my colleague and I were debugging (12.6.1) had a software update to 12.6.2, with an update to Xcode 14 Command Line tools. Hope this helps for future reference.

/Users/swatantrakumargoswami/Soulvers-project/SoulWallet/ios/Wallet/LaunchScreen.storyboard: Encountered an error communicating with IBAgent-iOS.

I am also getting the same error did anyone found any solution

IBAgent-iOS Error
 
 
Q