cannot edit .xcworkspace/contents file

房东的猫 提交于 2019-12-25 09:08:26

问题


After deleting unwanted .xcdatamodeld files in "YourProject".xcodeproj file, I encountered 3 new warnings linked to the "YourProject".xcWorkspace file. The warnings are:

  • contents is missing from working copy
  • .xccurrentversion is missing from working copy
  • contents is missing from working copy

After editing .xcodeproj/project.pbxproj, I tried to unpackage contents in .xcworkspace file. At this point, Xcode and my text editor does not allow me to edit .xcworkspace/contents. Any ideas how to edit this file, and remove the above three warnings?

I tried to follow the rare solution found on Stackoverflow here to remove xcdatamodels, but clearly the solution does not address the warnings that occur when a .xcworkspace file is still looking for the old project files successfully removed from .xcodeproj.

Thanks for any suggestions.


回答1:


Rather than trying to edit the above warnings by opening/editing .xcworkspace/..., I followed the advice in this Stackoverflow answer about missing ****.png files and the similar warnings. Warnings disappeared as soon as I made the latest commit to Github.



来源:https://stackoverflow.com/questions/43403412/cannot-edit-xcworkspace-contents-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!