无法在 Xcode 中打开项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38781954/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:07:10  来源:igfitidea点击:

Can't open Project in Xcode

iosxcodeproject

提问by Jisoo Kwon

Components of the project file is as follows:

项目文件的组成部分如下:

project.xcodeproj shows red color, how to resolve this issue

project.xcodeproj 显示红色,如何解决此问题

But it does not open fully when open the project as follows :

但是打开项目时并没有完全打开,如下所示:

回答by iSashok

I think you have the merge conflicts in .xcodeprojectfile.

我认为您在.xcodeproject文件中有合并冲突。

  1. Click on right mouse button on file
  2. Show package contents
  3. Open project.pbxprojfile in the text editor and find all places with merge comments as @Erik Godardcommented (search for ===== to identify the conflicts)
  4. Remove them
  5. Restart Xcode with your project
  1. 在文件上单击鼠标右键
  2. 显示包裹内容
  3. project.pbxproj在文本编辑器中打开文件,找到@Erik Godard评论的所有带有合并注释的地方(搜索 ===== 以识别冲突)
  4. 删除它们
  5. 使用您的项目重新启动 Xcode