NSBundle.mainBundle() returns nil

806 views Asked by At

I just reinstalled my mac and Xcode. Then [NSBundle mainBundle] always returns nil for some reason I don't know.

Thank you very much!

Here is the screenshot of my debug pane:

enter image description here

1

There are 1 answers

3
Duncan C On BEST ANSWER

You have built your code in release mode. In release mode the debugger is unreliable. Variables can be optimized away. Switch to debug mode and try again.