点击项目名称-->TARGETS-->Build Settings--> search:Treat Warnings as Errors-->将NO设置为YESui
再次编译,XCode会将全部的warnings看成error来处理。编译