无法编辑.xcworkspace / contents文件 [英] cannot edit .xcworkspace/contents file

查看:154
本文介绍了无法编辑.xcworkspace / contents文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在YourProject.xcodeproj文件中删除不需要的.xcdatamodeld文件后,我遇到了3个链接到YourProject.xcWorkspace文件的新警告。警告是:

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


  • 工作副本中缺少内容

  • 。工作副本中缺少.xccurrentversion
  • 工作副本中缺少
  • 内容

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

编辑完.xcodeproj / project.pbxproj后,我试图解压缩.xcworkspace文件中的内容。此时,Xcode和我的文本编辑器不允许我编辑.xcworkspace / contents。任何想法如何编辑此文件,并删除上述三个警告?

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?

我试图遵循St​​ackoverflow上找到的罕见解决方案这里删除xcdatamodels,但显然该解决方案没有解决.xcworkspace文件仍在查找时发生的警告已成功从.xcodeproj中删除旧项目文件。

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.

感谢您提出任何建议。

推荐答案

不是通过打开/编辑.xcworkspace / ...来编辑上述警告,而是按照 Stackoverflow回答关于丢失的****。png文件和类似的警告。一旦我向Github提交了最新的提交,警告就消失了。

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.

这篇关于无法编辑.xcworkspace / contents文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆