Compile fails in Xcode 8 beta 1 on storyboards

Hi,


Already filed a bug at bugreport.apple.com, but curious if more people have this issue, and if anyone has found a workaround.


When opening my app projects in Xcode 8 beta 1, the apps that don't use storyboards but .xib files build fine


However, the apps that have a storyboard, fail to build.


The storyboard-apps were created not too long ago in Xcode 7 (and in the app store).


Jeroen



A bit from the error message:


X/Base.lproj/MainInterface.storyboard: error: Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/lh/9gcfc1j5789dmh65xvzqlsz40000gn/T/IB-agent-diagnostics_2016-06-16_13-44-51_693000".

Recovery Suggestion: Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.

Underlying Errors:

Description: Encountered an error communicating with Interface Builder Cocoa Touch Tool.

Failure Reason: Interface Builder Cocoa Touch Tool (32770) failed to launch and exited with status 11

Recovery Suggestion: Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.

Underlying Errors:

Description: Failed to launch Interface Builder Cocoa Touch Tool via CoreSimulator spawn

Underlying Errors:

Description: Failed to handshake with platform tool

Underlying Errors:

Description: Failed to communicate with Interface Builder

Failure Reason: The agent crashed: CoreSimulator 260.5 - Device: IBSimDeviceTypeiPad2x - Runtime: iOS 10.0 (14A5261u) - DeviceType: IBSimDeviceTypeiPad2x



Build target X of project Y with configuration Debug

CompileStoryboard X/Base.lproj/MainInterface.storyboard

cd "/Users/Z/iPhone apps/X iOS 10 beta"

...

...

...X/Base.lproj/MainInterface.storyboard

Jun 16 13:44:49 Interface Builder Cocoa Touch Tool[32770] <Error>: CGColorSpaceCreateWithName failed for kCGColorSpaceExtendedSRGB

2016-06-16 13:44:50.683 ibtoold[32768:58373128] [MT] IBPlatformTool: Failed to initialize proxy for context <IBCocoaTouchToolLaunchContext: 0x7fedd56ccb30> toolName = Interface Builder Cocoa Touch Tool, description = <IBCocoaTouchPlatformToolDescription: 0x7fedd8018050> System content 2x for IBCocoaTouchFramework-NineOneAndLater w/ default fidelity: Failed to communicate with Interface Builder (Failure reason: The agent crashed: CoreSimulator 260.5 - Device: IBSimDeviceTypeiPad2x - Runtime: iOS 10.0 (14A5261u) - DeviceType: IBSimDeviceTypeiPad2x

)

2016-06-16 13:44:50.683 ibtoold[32768:58373128] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-11129.15/InterfaceBuilderKit/Utilities/IBAbstractInterfaceBuilderPlatformToolManager.m:254

Details: Failed to attach to Interface Builder Cocoa Touch Tool with error: Error Domain=com.apple.InterfaceBuilder Code=-1 "Encountered an error communicating with Interface Builder Cocoa Touch Tool." UserInfo={NSUnderlyingError=0x7fedd2d5b8c0 {Error Domain=IBMessageChannelErrorDomain Code=1 "Failed to launch Interface Builder Cocoa Touch Tool via CoreSimulator spawn" UserInfo={NSLocalizedDescription=Failed to launch Interface Builder Cocoa Touch Tool via CoreSimulator spawn, NSUnderlyingError=0x7fedd89e6b80 {Error Domain=IBMessageChannelErrorDomain Code=1 "Failed to handshake with platform tool" UserInfo={NSLocalizedDescription=Failed to handshake with platform tool, NSUnderlyingError=0x7fedd89e5df0 {Error Domain=IBMessageChannelErrorDomain Code=1 "Failed to communicate with Interface Builder" UserInfo=0x7fedd89efe70 (not displayed)}}}}}, NSLocalizedDescription=Encountered an error communicating with Interface Builder Cocoa Touch Tool., NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information., NSLocalizedFailureReason=Interface Builder Cocoa Touch Tool (32770) failed to launch and exited with status 11}

Object: <IBCocoaTouchToolManager>

Method: +_THREADSAFE_launchNewToolWithLaunchContext:executionContext:toolProxyClass:failureContext:requestingMethod:error:forReason:

Thread: <NSThread: 0x7fedd2d1a1a0>{number = 1, name = main}

Please file a bug at http...

2016-06-16 13:44:50.684 ibtoold[32768:58373128] [MT] IBPlatformTool: *** Failed to launch tool with description <IBCocoaTouchPlatformToolDescription: 0x7fedd8018050> System content 2x for IBCocoaTouchFramework-NineOneAndLater w/ default fidelity: Encountered an error communicating with Interface Builder Cocoa Touch Tool. (Failure reason: Interface Builder Cocoa Touch Tool (32770) failed to launch and exited with status 11): Failed to launch Interface Builder Cocoa Touch Tool via CoreSimulator spawn: Failed to handshake with platform tool: Failed to communicate with Interface Builder (Failure reason: The agent crashed: CoreSimulator 260.5 - Device: IBSimDeviceTypeiPad2x - Runtime: iOS 10.0 (14A5261u) - DeviceType: IBSimDeviceTypeiPad2x

)

I have a similar issue. Any resolution or workaround yet? of we should wait until the next xcode beta is released and hope for the best? 😟

I have had any issues yet and I have a very large storyboard. But I haven't opened it yet in xcode8 I just built it.

I have the same IB compiler issue with both my old storyboard files and even a brand new template project created with Xcode8. frustrating...

Even i got the same error in Xcode 8 (beta) (8S128d)

I was able to fix this. Deleted the "Developer" folder under library... and reinstall Xcode and start afresh..no compile issues...


Also I renamed the Beta from Xcode-beta to Xcode 8 ....and looks like it upset some path settings inside the .app package.

I fixed this by copy-paste the Xcode-Beta.app to Application folder. Previously I install the Xcode in another folder, and even the simulator can't run, and now everything is okay.

Thanks! I originally installed Xcode-beta to a subdirectory in /Applications. I got the same compiler errors, but after moving it to the root /Applications folder, the errors went away.

OK this is now solved for me, this was the response to the bug I filed:


Thanks for your bug report! This is a known iOS issue, called out in the Xcode 8 release notes. For beta 1, you cannot have a space in the path to Xcode.app.


https://twitter.com/thequinntaylor/status/743199155628040192


Looks like you have:


/Volumes/TOSHIBA EXT/Xcode-beta.app


So after renaming the external disk to TOSHIBAEXT it worked.

I have the same Error. I rename xcode from Xcode-beta to Xcode 8 Beta 1. The interface builder always crashed. Now I rename it back to Xcode-beta, then always works perfectly.

Issue remains in Xcode 8 beta 2.


I had the same problems and removing spaces from the name of the Xcode app solved the problem. (The rest of the path was already free of spaces.)

I renamed Xcode-beta.app to Xcode-beta.8.6.app, and I got the xib errors. That worked fine on all previous versions, but Beta 6 broke. Going back to the default name fixed it. Thanks!

Compile fails in Xcode 8 beta 1 on storyboards
 
 
Q