Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode localizable.strings not working after updating app
    primarykey
    data
    text
    <p>I started a project when I first began with Apple development, and probably made some interesting mistakes in file structure which is helping cause this problem. Namely, I recently switched my Xcode project to a workspace based on some of the sample code from WWDC 2012.</p> <p>For the purpose of example, let's say there is a key-value pair in the localizable.strings file: "someStringThatShouldBeLocalized" = "root view title"</p> <p>The original "physical" structure is similar to the following:</p> <pre><code>- iOS -- localizable.strings -- core data models &amp; classes </code></pre> <p>The workspace structure is similar to the following:</p> <pre><code>- iOS - Mac OSX - Shared -- core data models &amp; classes -- en.lproj --- localizable.strings </code></pre> <p>The localizable.strings file, and core data models and classes are referenced in all three projects. When I build and run any of them, it works as expected:</p> <ol> <li>Correct data models and classes are used, and</li> <li>Correct localized strings are used - "root view title"</li> </ol> <p>However, when I simulate updating from the App Store (install the app currently available on the store then run from Xcode or install from tagged copy from source control), it doesn't work as expected:</p> <ol> <li>Correct data models and classes are used, but</li> <li>Incorrect/No localized strings are used, all I see are the keys in call to NSLocalizedString(key, comment) - "someStringThatShouldBeLocalized"</li> </ol> <p>Again, the problem only arises when actually updating from previously installed versions of the app.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload