birdenglish
birdenglish

Reputation: 35

NSBundle.mainBundle() returns nil

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

Upvotes: 1

Views: 815

Answers (1)

Duncan C
Duncan C

Reputation: 131511

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.

Upvotes: 4

Related Questions