Obviously, Apple has stepped back from supporting genres. Use instead:
xcrun extractLocStrings
as your team. For example, to create Localizable.strings for your project:
find ./ -name "*.m" -print0 | xargs -0 xcrun extractLocStrings -o en.lproj
and for Swift:
find ./ -name "*.swift" -print0 | xargs -0 xcrun extractLocStrings -o en.lproj
Note that if you intend to export to a .xliff file, you no longer need to run genstrings as xCode
Editor> Export for Localization
Command
will process your lines "behind the scenes".
Update: Im on xCode 7.3.1 and on my system xtractLocStrings is binary.
$ file /Applications/Xcode.app//Contents/Developer/usr/bin/extractLocStrings /Applications/Xcode.app//Contents/Developer/usr/bin/extractLocStrings: Mach-O 64-bit executable x86_64
Here is my test:
let _ = NSLocalizedString("1st", comment: "1st string") let _ = NSLocalizedString("Second", tableName: "Localized", bundle: NSBundle.mainBundle(), value: "2nd", comment: "2nd string")
and here are the results:
Localizable.strings: "1st" = "1st"; Localized.strings: "Second" = "2nd";
Cliff source share