Xcode 6 iOS projects cannot build if company name includes an ampersand (&) character

Originator:invalidname
Number:rdar://18319140 Date Originated:9/12/14
Status:closed / fixed Resolved:9/30/14
Product:Developer tools Product Version:6.0 (6A313)
Classification:crash/hang/data loss Reproducible:always
 
Summary:
Using an ampersand character (&) in company name when setting up an iOS 8 project with Xcode 6 makes the project un-buildable. Even without adding any code or user interface elements, the build fails with "/LaunchScreen.xib: error: Line 14: xmlParseEntityRef: no name", followed by "The file “LaunchScreen-PartialInfo.plist” couldn’t be opened because there is no such file."

Steps to Reproduce:
1. Create a new iOS project, specifying a company name that uses an ampersand character (eg, "Steve & Steve Apple Company").

2. Build

Expected Results:
Empty project should build

Actual Results:
Two build errors:
/* com.apple.ibtool.errors */
/Users/cadamson/dev/apple-buglets/AmpersandInCompanyNameBuglet/AmpersandInCompanyNameBuglet/Base.lproj/LaunchScreen.xib: error: Line 14: xmlParseEntityRef: no name

error: could not read data from '/Users/cadamson/Library/Developer/Xcode/DerivedData/AmpersandInCompanyNameBuglet-aiphsubeiyokgtekzcoirlfoskbu/Build/Intermediates/AmpersandInCompanyNameBuglet.build/Debug-iphonesimulator/AmpersandInCompanyNameBuglet.build/LaunchScreen-PartialInfo.plist': The file “LaunchScreen-PartialInfo.plist” couldn’t be opened because there is no such file.

Also, if you attempt to view LaunchScreen.xib, you get a sheet with the error "Line 14: xmlParseEntityRef: no name"

Version:
Xcode 6.0 (6A313), OS X 10.9.4 (13E28)

Notes:
Workaround: view LaunchScreen.xib as source, go down to line 14 (the <label>) tag, and replace ampersand in the "text" attribute with "and". The .xib will now be able to be edited with Interface Builder and the project will build.

Configuration:
Mac Pro early 2008 with Xcode GM is the only thing I've tried this on.

Attachments:
'AmpersandInCompanyNameBuglet.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!