ibtool assertion when using Autolayout with SourceList NSOutlineView
| Originator: | mauricerkelly | ||
| Number: | rdar://10746151 | Date Originated: | 24-Jan-2012 06:56 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.2.1 |
| Classification: | UI/Usability | Reproducible: | Yes |
24-Jan-2012 06:56 PM Maurice Kelly:
Summary:
When using Autolayout with an NSOutlineView configured in source list style it causes ibtool to exit with return code 255, and stating an assertion failure:
2012-01-24 18:48:06.126 ibtoold[50605:b03] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-1938/Framework/Document/IBDocument.m:3884
Details: Can't delete something I don't contain
Object: <IBCocoaDocument: 0x40155fa00>
Method: -removeObjects:
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Sample project attached.
Steps to Reproduce:
Create a new Cocoa Application.
Open the MainMenu.xib.
Enable Auto layout for the XIB
Drag a Source List onto the View
Resize the Source List on all sides until it hits the guide for the standard distance to the edge of a view.
Select the left hand Horizontal Space Constraint and set the value for Constant to be 0 (this is intended to constrain the Source List to the edge of the Window.
Run the application.
Expected Results:
The application should build and run without problems.
Actual Results:
The build fails and ibtool reports the following error:
2012-01-24 18:48:06.126 ibtoold[50605:b03] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-1938/Framework/Document/IBDocument.m:3884
Details: Can't delete something I don't contain
Object: <IBCocoaDocument: 0x40155fa00>
Method: -removeObjects:
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Regression:
Notes:
The full output of the error is as follows:
CompileXIB SourceListAutoLayout/en.lproj/MainMenu.xib
cd /Users/mkelly/Desktop/SourceListAutoLayout
setenv XCODE_DEVELOPER_USR_PATH /Developer/usr/bin/..
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/mkelly/Library/Developer/Xcode/DerivedData/SourceListAutoLayout-felqxaxiigbcnkfhvnhaoodieaxb/Build/Products/Debug/SourceListAutoLayout.app/Contents/Resources/en.lproj/MainMenu.nib /Users/mkelly/Desktop/SourceListAutoLayout/SourceListAutoLayout/en.lproj/MainMenu.xib --sdk /Developer/SDKs/MacOSX10.7.sdk
2012-01-24 18:48:06.126 ibtoold[50605:b03] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-1938/Framework/Document/IBDocument.m:3884
Details: Can't delete something I don't contain
Object: <IBCocoaDocument: 0x40155fa00>
Method: -removeObjects:
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x000000010367a2d4 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundation)
1 0x000000010367a1a4 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x0000000102e54a6f -[IBDocument removeObjects:] (in IDEInterfaceBuilderKit)
3 0x0000000104e63d29 -[NSView(IBAppKitViewIntegration) ibSwizzledNSViewBeginArchivingDocument:withContext:] (in IDEInterfaceBuilderCocoaIntegration)
4 0x0000000102eb0cfd -[NSObject(IBFrameworkObjectIntegration) ibBeginArchivingDocument:withContext:] (in IDEInterfaceBuilderKit)
5 0x0000000104e96604 -[NSObject(IBAppKitObjectIntegration) ibSwizzledBeginArchivingDocument:withContext:] (in IDEInterfaceBuilderCocoaIntegration)
6 0x0000000104eac023 -[NSWindowTemplate(IBWindowTemplateIntegration) ibBeginArchivingDocument:withContext:] (in IDEInterfaceBuilderCocoaIntegration)
7 0x0000000102e45fca -[IBDocument willArchiveWithContext:] (in IDEInterfaceBuilderKit)
8 0x0000000104e4c745 -[IBCocoaDocument compiledKeyedObjectsData:] (in IDEInterfaceBuilderCocoaIntegration)
9 0x0000000104e4cadc -[IBCocoaDocument compiledPackageWithError:] (in IDEInterfaceBuilderCocoaIntegration)
10 0x0000000102e11d25 (in ibtoold)
11 0x0000000102e0f413 (in ibtoold)
12 0x0000000102e0f120 (in ibtoold)
13 0x0000000102e0f02c (in ibtoold)
14 0x0000000102e18d56 (in ibtoold)
15 0x0000000102e0ebaa (in ibtoold)
16 0x0000000102e0fb8f (in ibtoold)
17 0x0000000102e0d644 (in ibtoold)
Command /Developer/usr/bin/ibtool failed with exit code 255
24-Jan-2012 06:56 PM Maurice Kelly:
'SourceListAutoLayout.zip' was successfully uploaded
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!