NSBundle - (not loaded yet) Error

前端 未结 2 2066
臣服心动
臣服心动 2021-01-05 18:58

I am trying to get a strings file table for use with NSLocalizedStringFromTableInBundle.

I am using this method:

+(NSBundle*)getBundleForLang:(NSStri         


        
相关标签:
2条回答
  • 2021-01-05 19:27

    Check the case of your file paths. The simulator (by default) is not case sensitive, whereas the device is. This could cause the simulator to successfully find the file, but the device to fail.

    0 讨论(0)
  • 2021-01-05 19:28

    It's not an error. Strings bundle, such as en.lproj, does not include executable file. When you try to [bundle loadAndReturnError:], it will fail, and loadAndReturnError:'s document will tell you why.

    0 讨论(0)
提交回复
热议问题