Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool failed with exit code 255

Hi everyone,


I'm having a problem with the newest Xcode 7 beta.

Everytime I'm trying to run the project I'm getting this error: Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool failed with exit code 255

Same code is 100% working on Xcode 6 on an other device, below my complete output.

CompileStoryboard Taxishare/Storyboards/PFTaxiStoryboard.storyboard
    cd /Users/matthijsotterloo/git/yeller/yeller-app/Taxishare
    export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-beta.app/Contents/Developer/usr/bin/..
    /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module Yeller --output-partial-info-plist /Users/matthijsotterloo/Library/Developer/Xcode/DerivedData/Yeller-edobxfiyfejllhghzzykxhbghlpz/Build/Intermediates/Yeller.build/Debug-iphonesimulator/Yeller.build/PFTaxiStoryboard-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 7.1 --output-format human-readable-text --compilation-directory /Users/matthijsotterloo/Library/Developer/Xcode/DerivedData/Yeller-edobxfiyfejllhghzzykxhbghlpz/Build/Intermediates/Yeller.build/Debug-iphonesimulator/Yeller.build /Users/matthijsotterloo/git/yeller/yeller-app/Taxishare/Taxishare/Storyboards/PFTaxiStoryboard.storyboard
2015-07-26 10:58:30.198 Interface Builder Cocoa Touch Tool[15459:981901] Error creating notification handler for simulator graphics quality override: 1000000
2015-07-26 10:58:30.532 Interface Builder Cocoa Touch Tool[15459:981910] 10:58:30.529 ERROR:    >SystemSoundClient> 49: Couldn't connect to system sound server
2015-07-26 10:58:31.443 Interface Builder Cocoa Touch Tool[15459:981901] The view hierarchy is not prepared for the constraint: <NSLayoutConstraint:0x7be3b710 H:|-(0)-[UIButton:0x7b9e43a0'BESTEL']   (Names: '|':UIWindow:0x7b9d2550 )>
  When added to a view, the constraint's items must be descendants of that view (or the view itself). This will crash if the constraint needs to be resolved before the view hierarchy is assembled. Break on -[UIView(UIConstraintBasedLayout) _viewHierarchyUnpreparedForConstraint:] to debug.
2015-07-26 10:58:31.447 Interface Builder Cocoa Touch Tool[15459:981901] View hierarchy unprepared for constraint.
  Constraint: <NSLayoutConstraint:0x7be3b710 H:|-(0)-[UIButton:0x7b9e43a0'BESTEL']   (Names: '|':UIWindow:0x7b9d2550 )>
  Container hierarchy:
<UIButton: 0x7b9e43a0; frame = (0 0; 65 30); opaque = NO; autoresize = W+H; layer = <CALayer: 0x7b9cff90>>
   | <UIButtonLabel: 0x7b912390; frame = (7 7; 52 17); text = 'BESTEL'; opaque = NO; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x7b91e510>>
  View not found in container hierarchy: <UIWindow: 0x7b9d2550; frame = (0 0; 65 30); hidden = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x7b9e4830>; layer = <UIWindowLayer: 0x7b9d26e0>>
  That view's superview: NO SUPERVIEW
2015-07-26 10:58:42.797 ibtoold[15453:981731] [MT] IBPlatformTool: Wrote failed marshalling request diagnostics to path: /var/folders/6f/c5qqwlg53gz_d3mtpsm4wmqw0000gn/T/IB-agent-diagnostics_2015-07-26_10-58-41_815000
2015-07-26 10:58:42.800 ibtoold[15453:981731] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-8164.2/InterfaceBuilderKit/Utilities/IBPlatformToolFailureHandler.m:315
Details:  Failed to compute auto layout status IBLayoutConstraint and IBUIButton.
Encountered an error communicating with Interface Builder Cocoa Touch Tool. If you choose to file a crash report or Radar for this issue, please zip and attach the diagnostics at "/var/folders/6f/c5qqwlg53gz_d3mtpsm4wmqw0000gn/T/IB-agent-diagnostics_2015-07-26_10-58-41_815000" to your crash report.
Exception name: NSGenericException
Exception reason: Unable to install constraint on view.  Does the constraint reference something from outside the subtree of the view?  That's illegal. constraint:<NSLayoutConstraint:0x7be3b710 H:|-(0)-[UIButton:0x7b9e43a0'BESTEL']   (Names: '|':UIWindow:0x7b9d2550 )> view:<UIButton: 0x7b9e43a0; frame = (0 0; 65 30); opaque = NO; autoresize = W+H; layer = <CALayer: 0x7b9cff90>>
Exception backtrace:
  0. CoreFoundation           0x02b441f8 __exceptionPreprocess
  1. libobjc.A.dylib          0x02604e42 objc_exception_throw
  2. CoreFoundation           0x02b4413d +
  3. Foundation               0x021f350a -
  4. UIKit                    0x00b095e8 -
  5. UIKit                    0x00b09a49 -
  6. UIKit                    0x00b09bdf -
  7. UIKit                    0x00b09ecc -
  8. UIKit                    0x00b09e84 -
  9. UIKit                    0x00b09d4f -
10. IBCocoaTouchToolFoundation 0x000efe96 -
11. IBCocoaTouchToolFoundation 0x000f06b2 -
12. IBAutolayoutFoundation   0x01d60315 -
13. IBAutolayoutFoundation   0x01d4769e -
14. IBCocoaTouchToolFoundation 0x000fc068 __54-[IBCocoaTouchTool computeAutolayoutStatusForRequest:]_block_invoke_2
15. IBCocoaTouchToolFoundation 0x0012ed04 +
16. IBCocoaTouchToolFoundation 0x000fbff3 __54-[IBCocoaTouchTool computeAutolayoutStatusForRequest:]_block_invoke
17. IBCocoaTouchToolFoundation 0x000fb95e -
18. IBCocoaTouchToolFoundation 0x000fbf5b -
19. IBFoundation             0x01ebaec2 __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke
20. IBFoundation             0x01ebac88 -
21. IBFoundation             0x01eba921 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke
22. libdispatch.dylib        0x065fc70f _dispatch_client_callout
23. libdispatch.dylib        0x065e68bd _dispatch_barrier_sync_f_slow_invoke
24. libdispatch.dylib        0x065fc70f _dispatch_client_callout
25. libdispatch.dylib        0x065e5879 _dispatch_main_queue_callback_4CF
26. CoreFoundation           0x02a9673e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
27. CoreFoundation           0x02a54324 __CFRunLoopRun
28. CoreFoundation           0x02a53736 CFRunLoopRunSpecific
29. CoreFoundation           0x02a5354b CFRunLoopRunInMode
30. Foundation               0x0221ae12 -
31. IBFoundation             0x01e94fd7 -
32. IBFoundation             0x01e951dd -
33. IBFoundation             0x01e95e69 +
34. ???                      0x0008b753
35. libdyld.dylib            0x06622a21 start
Exception info:{
}
Object:   <IBPlatformToolFailureHandler: 0x7f92d4a166e0>
Method:   -assert
Thread:   <NSThread: 0x7f92d0c16ea0>{number = 1, name = main}
Hints: None
Backtrace:
  0  0x000000010e82f709 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1  0x000000010e82f23d _DVTAssertionHandler (in DVTFoundation)
  2  0x000000010e82f454 _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x000000010f990a29 __38-[IBPlatformToolFailureHandler assert]_block_invoke (in IDEInterfaceBuilderKit)
  4  0x000000010f990863 -[IBPlatformToolFailureHandler assert] (in IDEInterfaceBuilderKit)
  5  0x00000001191de6f5 (in IDEInterfaceBuilderCocoaTouchIntegration)
  6  0x000000010f88a538 __72-[IBDocumentAutolayoutManager updateAutolayoutStatusInArbitrationUnits:]_block_invoke (in IDEInterfaceBuilderKit)
  7  0x000000010f8833cd -[IBDocumentAutolayoutManager _runAutolayoutCommandForArbitrationUnits:withBlock:] (in IDEInterfaceBuilderKit)
  8  0x000000010f88a43f -[IBDocumentAutolayoutManager updateAutolayoutStatusInArbitrationUnits:] (in IDEInterfaceBuilderKit)
  9  0x000000010f88a85f -[IBDocumentAutolayoutManager didFireAutolayoutStatusDelayedInvocation:] (in IDEInterfaceBuilderKit)
10  0x000000010e6bb858 -[DVTDelayedInvocation runBlock:] (in DVTFoundation)
11  0x000000010e6bbdca -[DVTDelayedInvocation invokeIfNeeded] (in DVTFoundation)
12  0x000000010e6bc3a7 -[DVTDelayedInvocation invoke] (in DVTFoundation)
13  0x000000010f86d585 -[IBDocument ensureAutolayoutStatusIsValid] (in IDEInterfaceBuilderKit)
14  0x000000010f82db7e -[IBDocument changeDocumentTargetRuntimeTo:andPerformFrameDecision:withContext:andContextForUndo:] (in IDEInterfaceBuilderKit)
15  0x000000010faa28d9 -[IBStoryboardDocument changeDocumentTargetRuntimeTo:andPerformFrameDecision:withContext:andContextForUndo:] (in IDEInterfaceBuilderKit)
16  0x000000010f88db0c __85-[IBDocumentCompiler invokeWithIntermediateDocumentOfTargetRuntime:alwaysCopy:block:]_block_invoke (in IDEInterfaceBuilderKit)
17  0x000000010f88d8d7 -[IBDocumentCompiler invokeWithIntermediateDocument:] (in IDEInterfaceBuilderKit)
18  0x000000010f88da7b -[IBDocumentCompiler invokeWithIntermediateDocumentOfTargetRuntime:alwaysCopy:block:] (in IDEInterfaceBuilderKit)
19  0x000000010fab2d14 -[IBStoryboardDocumentCompiler compileWithOptions:error:] (in IDEInterfaceBuilderKit)
20  0x000000010f88dc4f +[IBDocumentCompiler compileContentsOfDocument:options:error:] (in IDEInterfaceBuilderKit)
21  0x000000010f84f962 __47-[IBDocument compiledPackageWithOptions:error:]_block_invoke (in IDEInterfaceBuilderKit)
22  0x000000010f88bb16 -[IBDocumentAutolayoutManager ignoreAutolayoutStatusInvalidationDuring:] (in IDEInterfaceBuilderKit)
23  0x000000010f84f8b9 -[IBDocument compiledPackageWithOptions:error:] (in IDEInterfaceBuilderKit)
24  0
Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool failed with exit code 255


Hope someone can help me solving this problem since it's really important to have this working asap.

P.S. I'm als using cocoapods in this project.


Cheers!


Matthijs

Replies

try to remove translatesAutoresizingMaskIntoConstraints in your xib or storyboard file, you can edit it as source code.

This could be caused by the presence of old runtimes as mentioned in the Release Notes:

Xcode processes may quit unexpectedly if older iOS Simulator runtimes (Xcode 6.x) are present on disk


To see if that's the case (or to rule it out as a cause), delete all (old) runtimes from /Library/Developer/CoreSimulator/Profiles/Runtimes.