ibtool is overly picky with file argument syntax

Originator:futuretap
Number:rdar://15130132 Date Originated:02-Oct-2013 11:33 AM
Status:Closed/Insufficient information Resolved:
Product:Developer Tools Product Version:ibtool 5.0 (1878)
Classification:Other Bug Reproducible:Sometimes
 
Summary:
Our localization workflow is based on ibtool to localize XIBs. We used to have something like this in a build script:

cd fr.lproj
ibtool --import-strings-file MainWindow.xib.strings --write MainWindow.xib /Users/joe/Product/en.lproj/Mainwindow.xib

Since ibtool 5.0 this fails with 

The stringsfile MainWindow.xib.strings does not appear to contain valid data for UTF-16 string encoding.

The error message is completely misleading. The problem is caused only by ibtool's broken interpretation of path names.

Problems we discovered:
- single quotes around file names aren't accepted
- ".." in path names isn't accepted
- for the "--import-strings-file" argument files without "/" (in the local directory) aren't accepted

Comments

see also: http://stackoverflow.com/a/19134032/235297

By futuretap at Oct. 2, 2013, 9:41 a.m. (reply...)

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!