简体   繁体   中英

NSBundle mainBundle infoDictionary returns NULL

No idea why [[NSBundle mainBundle] infoDictionary] returns nil ...

I have an Info.plist file in the project.. and build settings point to it...

Why is this happening?

-infoDictionary should never return a nil dictionary. It may be a problem with the Info.plist file itself.

The problem cleared. I'm not sure, but I think the solution was to set my Project build settings "Info plist" property to its true path, which was empty before...

Strange problem...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM