WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions