MJRefresh icon indicating copy to clipboard operation
MJRefresh copied to clipboard

NSBundle (null) initWithPath failed because the resolved path is empty or nil

Open Spaino opened this issue 5 months ago • 8 comments

+ (NSString *)mj_localizedStringForKey:(NSString *)key value:(NSString *)value 方法中NSString *i18nFolderPath = [bundle pathForResource:language ofType:@"lproj"];获取到的i18nFolderPath为nil,导致mj_defaultI18nBundle = [NSBundle bundleWithPath:i18nFolderPath];执行有异常提示: NSBundle (null) initWithPath failed because the resolved path is empty or nil

Spaino avatar Jul 22 '25 06:07 Spaino

给出示例工程和运行环境

wolfcon avatar Aug 15 '25 09:08 wolfcon

不对工程做国际化就会出现这个问题

jiutianhuanpei avatar Aug 26 '25 11:08 jiutianhuanpei

我是swift开发,我也遇到了相同内容的“警告”,程序倒是可以运行,没什么异常。所以也反馈一下 警告内容如下: NSBundle (null) initWithPath failed because the resolved path is empty or nil

造成这个警告的语句是如下,注释掉就没有警告了(当然程序也就不正常了) tableView.mj_header = MJRefreshNormalHeader()

feelingseas avatar Sep 22 '25 17:09 feelingseas

您好,邮件已收到。

gitph101 avatar Sep 22 '25 17:09 gitph101

我这边升级到xcode 26.0也出现了

mhty19891833 avatar Sep 25 '25 01:09 mhty19891833

用模拟器就出现了这个问题,真机好像正常

mhty19891833 avatar Sep 25 '25 02:09 mhty19891833

Image 取值有问题

zhaoychehe avatar Nov 08 '25 13:11 zhaoychehe

check this out fix/Bundle-path-nil #1629

wolfcon avatar Nov 11 '25 04:11 wolfcon