has been modified since the precompiled header

  1. Clean工程

  2. 按住option键,再次Clean(Clean Build Folder...)

  3. 进入Window -> Organizer,在上面的Tab中选择Project,在左侧选中当前的工程,在右侧把Derived Data删除

  4. 报has been modified since the precompiled header错误的时候会显示很长的错误信息,其中有个包含DerivedData目录的路径,把路径指向的文件删掉

  5. 关闭Xcode,直接把 /Library/Developer/Xcode/ 目录删掉,然后启动Xcode自动重建此目录。如果你配置了自定义的快捷键,建议先把 /Users/你的用户名/Library/Developer /Xcode/UserData/KeyBindings 目录下你自定义的KeyBindings文件备份,之后再复制过来


你可能感兴趣的:(has been modified since the precompiled header)