这个错误是由于资源无法编译通过报出的。一般是从另外一个项目直接复制到新项目导致新项目无法编译出现的问题。
解决办法如下
- 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