Rubustrings can also be used as a custom build rule so that all .strings files are automatically validated at build time.
These are exported using export-strings. I have exactly the same problem since upgrading to Xcode 10.

Although this is not an issue for performance or slowing you down a lot, it is kind of nice to keep your resource files clean. I did not have this problem in Xcode 9. Also a clean build … Avoid using a .stringsdict file with a string that does not include a number, because a language might define generic singular and plural forms in ways that … It’s easy to end up with a lot of unused localized strings. The compiler cannot seem to find framework header files. This is a collection of all the strings found in all binaries inside In the dialog, enter a name for the file, choose a location, and click Create. Switching them to No doesn't help. These files can grow over time and make it hard to maintain. Strings files are used for localization in iOS and MacOS apps. Xcode does not provide an out of the box solution for this. Stringsdict File Format A .stringsdict file is a property list used to define language plural rules. Filed Under: Cocoa, Development, Xcode provides a handy feature called "Info.plist preprocessing" that allows you to specify placeholder values in your plist that are then automatically replaced by Xcode with values you specify in your build settings. This will also attempt to highlight offending lines in XCode. To add a strings or stringsdict file to your project, choose File > New > File. Re: write a string variable to a file Level 8 (9,195 points) Claude31 Sep 30, 2017 11:42 AM ( in response to ShinehahGnolaum ) If I inspect an app like Safari and look at the .strings files on that bundle, the file … In the sheet that appears, choose the platform, enter “strings” in the search field (filters the list), select Strings File or Stringsdict File, then click Next. 'Header Search Paths' and 'User Header Search Paths' point to the correct folders. Reading Strings From and Writing Strings To Files and URLs.

When you write to a file or URL, you must specify the encoding to use.
Reading files or URLs using NSString is straightforward provided that you know what encoding the resource uses—if you don't know the encoding, reading a resource is more challenging.

I noticed that my .strings files are compiled in my app in plain text, with my comments and whatnot still in there. This will also attempt to highlight offending lines in XCode. Preprocessing InfoPlist.strings files in Xcode. Additionally I have 'Use Header Maps' and 'Always Search User Paths (Deprecated) 'to 'Yes'.