.xcodeproj cannot be opened because the project file cannot be parsed.Xcode工程文件打不开
2016-11-22 12:02
615 查看
转自:http://46aae4d1e2371e4aa769798941cef698.devproxy.yunshipei.com/minggeqingchun/article/details/51767012
使用Git提交代码或者重新clone代码时,打开工程文件时,会报错:
xx.xcodeproj cannot be opened because the project file cannot be parsed.
因为.xcodeproj工程文件冲突了,所以解析不了文件。
解决办法就是:
1.对.xcodeproj 文件右键,显示包内容
2.双击打开 project.pbxproj 文件
3.找到以上类似的冲突信息(可以用commad + f 搜索<<<<<<< HEAD)
[objc] view plain
copy
<<<<<<< HEAD
E7DB00CE1C4C8E81001EB56C /* NIMImageViewController.m in Sources */,
=======
8603CC071D1A825A00487A43 /* FileTypesViewController.m in Sources */,
E7DB00CE1C4C8E81001EB56C /* NIMImageViewController.m in Sources */,
>>>>>>> c46d48be0f656ac549958b849897ec9a3157b325</span>
其中:冲突标记<<<<<<< HEAD与=======之间的内容是我的修改,=======与>>>>>>>之间的内容是别人的修改。
最简单的编辑冲突的办法,就是直接编辑冲突了的文件(test.txt),把冲突标记删掉,把冲突解决正确。
4.删除 <<<<<<<,======,>>>>>>这些行
将<<<<<<< HEAD删除;还有=======与>>>>>>>之间的内容进行删除,保留一下 <<<<<<< HEAD与=======之间的内容
[objc] view plain
copy
E7DB00CE1C4C8E81001EB56C /* NIMImageViewController.m in Sources */,
5.点击保存再退出
6.重新打开.xcodeproj文件即可
使用Git提交代码或者重新clone代码时,打开工程文件时,会报错:
xx.xcodeproj cannot be opened because the project file cannot be parsed.
因为.xcodeproj工程文件冲突了,所以解析不了文件。
解决办法就是:
1.对.xcodeproj 文件右键,显示包内容
2.双击打开 project.pbxproj 文件
3.找到以上类似的冲突信息(可以用commad + f 搜索<<<<<<< HEAD)
[objc] view plain
copy
<<<<<<< HEAD
E7DB00CE1C4C8E81001EB56C /* NIMImageViewController.m in Sources */,
=======
8603CC071D1A825A00487A43 /* FileTypesViewController.m in Sources */,
E7DB00CE1C4C8E81001EB56C /* NIMImageViewController.m in Sources */,
>>>>>>> c46d48be0f656ac549958b849897ec9a3157b325</span>
其中:冲突标记<<<<<<< HEAD与=======之间的内容是我的修改,=======与>>>>>>>之间的内容是别人的修改。
最简单的编辑冲突的办法,就是直接编辑冲突了的文件(test.txt),把冲突标记删掉,把冲突解决正确。
4.删除 <<<<<<<,======,>>>>>>这些行
将<<<<<<< HEAD删除;还有=======与>>>>>>>之间的内容进行删除,保留一下 <<<<<<< HEAD与=======之间的内容
[objc] view plain
copy
E7DB00CE1C4C8E81001EB56C /* NIMImageViewController.m in Sources */,
5.点击保存再退出
6.重新打开.xcodeproj文件即可
相关文章推荐
- xx.xcodeproj cannot be opened because the project file cannot be parsed.Xcode工程文件打不开
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode工程文件打不开:cannot be opened because the project file cannot be parsed
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- <iOS>cannot be opened because the project file cannot be parsed. Xcode工程文件打不开..
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- svn更新代码后,Xcode 工程文件打开不出来出现 cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- 5、Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- Xcode工程文件打不开:cannot be opened because the project file cannot be parsed
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- SVN Cornerstone 报错信息 xcodeproj cannot be opened because the project file cannot be parsed.