Here’s how I got this problem:
I added a .h
, .m
and NIB from another project by dragging them onto my project navigator. Xcode didn’t add them to the Build Phases properly.
My solution for this problem:
- Go to the Target in the navigator menu
- Click on the “Build Phases” tab
- Add the
.m
file to “Compile Sources” (either drag it across, or use the + button) - Add the
.xib
to “Copy bundle resources” - Clean and build
It works for me thanks a lot to you