Xcode删除了无用的控制器后出现了这个问题

图片描述

file:///Users/tudou/Desktop/lemonshuoProject/trunk/LemonShuo/classess/EditProfile/Question/Controller/LMSQuestionController.m: warning: Missing file: /Users/tudou/Desktop/lemonshuoProject/trunk/LemonShuo/classess/EditProfile/Question/Controller/LMSQuestionController.m is missing from working copy

阅读 3.3k
3 个回答

原因:

你在Finder中删除了类文件, Xcode仍然持有该文件的引用, 但实际文件已经不存在, 因此报错

解决方法:

在Xcode文件引用列表中清除该文件: Build Phases - Compile Sources,清除

去项目的 Build Phases - Compile Sources 中看看是否这两个文件没有清除。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题