svn更新代碼后,打開xcode工程文件,會出現 xxx..xcodeproj cannot be opened because the project file cannot be parsed.
因為.xcodeproj工程文件沖突了,然后還是會強制更新,內部文件出現了沖突,所以解析不了文件。
會出現這樣的沖突消息
- <<<<<<< .mine
- 9ADAAC6A15DCEF6A0019ACA8 .... in Resources */,
- =======
- 52FD7F3D15DCEAEF009E9322 ... in Resources */,
- >>>>>>> .r269
解決方法:1.對.xcodeproj 文件右鍵,顯示包內容
2.雙擊打開 project.pbxproj 文件
3.找到以上類似的沖突信息(可以用commad + f 搜索)
4.刪除 <<<<<<<,======,>>>>>>這些行
5.保存,退出
6.重新打開.xcodeproj文件即可