XIBs with pathed image resources do not compile when using Yosemite and Xcode 6

Originator:guiyon
Number:rdar://18722071 Date Originated:2014/10/21
Status:Open Resolved:
Product:Xcode Product Version:6.1 (6A1052d)
Classification: Reproducible:Always
 
Summary:
If an image resource in a xib has uses a path prefix (for example, 'aFolder/myImage' for an image located at 'MyApp.app/aFolder/myImage.png') the compilation of the xib will fail and the project will be unable to finish the build. When the error occurs, Xcode reports a '-1' error and 'ibtoold' reports a NSRangeException thrown by -[NSTaggedPointerString getCharacters:range:] in the console.

Steps to Reproduce:
  1. Create a new  single view controller project with a xib. 
  2. Add an image resource to the project so that, when compiled, the final path will be along the lines of MyProject.app/<a-resource-folder>/<image-name>
  3. Add a UIImageView to the initial XIB which has its image resource path set to '<a-resource-folder>/<image-name>'
  4. Build the project

Expected Results:
The project will successfully build and properly present the image at runtime.

Actual Results:
The compilation of the XIB fails due to a '-1' error and the build fails. In addition, the 'ibtoold' process reports a NSRangeException thrown by -[NSTaggedPointerString getCharacters:range:] in the console.

Version:
Xcode 6.1 (6A1052d)
Mac OS X Yosemite (14A389)

Notes:
Removing the path from all references to the image in the XIB using a text editor allows the XIB to be opened (and compiled) by Xcode but the image will not be displayed at runtime.

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!