We have a Framework that we sell to clients. We have a separate bundle that we ship with the Framework. That bundle contains localizations for multiple languages.
This is how we use localized strings:
NSLocalizedStringFromTableInBundle(keyString, nil, myBundle, nil);
Right before I access the localized string I print this for debugging purposes (it is definitely finding the bundle):
Bundle: NSBundle </Users/spentak/Library/Developer/CoreSimulator/Devices/367938EC-DDB6-4C32-938D-15C2D9F53560/data/Containers/Bundle/Application/A3F649DC-5FA9-414E-BE8C-7A6D66A8A857/Triangle_objc.app/AppNotice.bundle> (not yet loaded)
When the language is set to English, the localizations load. But when I switch it to "es" this is the log that prints when I turn on localization debugging:
Localizable string "app_dialog_button_decline" not found in strings table "Localizable" of bundle CFBundle 0x7fac41d50270 </Users/spentak/Library/Developer/CoreSimulator/Devices/367938EC-DDB6-4C32-938D-15C2D9F53560/data/Containers/Bundle/Application/1EF26DBB-430B-4614-A847-90CC657C63AF/Triangle_objc.app/AppNotice.bundle> (not loaded)
So the question is, why is my English localization working, but not my other languages? (The key in localizable.strings is definitely correct)
This is what my bundle looks like when imported in a project that uses the Framework:
http://i.imgur.com/EdcLeFA.png
If I test these localizations OUTSIDE of the framework - meaning in a regular project they all work. Just appears that the framework is having issues loading localized resources.
Tried this on Xcode 7 and Xcode 7.1 Beta 3
The Base SDK of the framework is Latest iOS (iOS 9.1)
Thoughts?