NSBundle mainBundle infoDictionary returns NULL

2k Views Asked by At

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?

2

There are 2 best solutions below

0
On

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

0
On

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...