Cannot open stringsdict file with XML comments
Originator: | timothy.chilvers | ||
Number: | rdar://FB8393793 | Date Originated: | 14/08/2020 |
Status: | Open | Resolved: | |
Product: | Xcode | Product Version: | 11.5 |
Classification: | Bug | Reproducible: | Yes |
When I try to open a stringsdict file that starts with an XML comment Then I get an error message “Tried to create a document (class: IDEPlistDocument) and got a document with a different, non-conforming fileType back instead.” And the document does not open. Add the following XML as a stringsdict file, and try and open it in Xcode: <!-- * Apple Stringsdict File * Generated by Twine 1.0.3.1 * Language: en --> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> </dict> </plist> What did you expect to happen? To see an empty stringsdict file What actually happened? Error message “Tried to create a document (class: IDEPlistDocument) and got a document with a different, non-conforming fileType back instead.” And the document does not open.
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!