XIB files cannot refer to images.
| Originator: | kamikaze.mark | ||
| Number: | rdar://18790270 | Date Originated: | 2014-10-27 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 6.1 |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary:
XIB files cannot refer to images, or they won't re-open in the thing that used to be Interface Builder.
Steps to Reproduce:
1. Create a XIB file.
2. Create a UIButton.
3. Set an image on the button. Note that the button does not show the image preview, as it did in any previous edition of IB back to NeXT days.
4. Save the XIB.
5. Open the XIB, get the error message: The document "Button.xib" could not be opened. The operation couldn’t be completed. (com.apple.InterfaceBuilder error -1.) Check the console log for additional information.
Console says:
Xcode[4083]: Exception raised while unarchiving document objects - -[NSTaggedPointerString getCharacters:range:]: Range {0, 10} out of bounds; string length 6
Expected Results:
5. XIB should re-open.
Actual Results:
Editing the XIB in BBEdit, removed all image= attributes and the <resources> section. XIB now opens in Xcode.
Version:
Xcode 6.1
Yosemite
Notes:
Configuration:
Standard.
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!