Use bundleForClass instead of mainBundle.

If you've copied and pasted the whole XMPPFramework into your current project, it will act just the same, but if you're using a separate framework for it, it will correctly find your .mom and .momd files.

Just a fix that my app uses, that I thought would be helpful.