Skip to content

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

@Spaino

Description

@Spaino

+ (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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions